diff options
Diffstat (limited to 'abicheck.c')
| -rw-r--r-- | abicheck.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/abicheck.c b/abicheck.c new file mode 100644 index 0000000..df7a885 --- /dev/null +++ b/abicheck.c | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | #include <tree_sitter/api.h> | ||
| 3 | |||
| 4 | TSLanguage *tree_sitter_c(void); | ||
| 5 | TSLanguage *tree_sitter_cpp(void); | ||
| 6 | TSLanguage *tree_sitter_python(void); | ||
| 7 | TSLanguage *tree_sitter_php(void); | ||
| 8 | TSLanguage *tree_sitter_go(void); | ||
| 9 | TSLanguage *tree_sitter_rust(void); | ||
| 10 | TSLanguage *tree_sitter_javascript(void); | ||
| 11 | TSLanguage *tree_sitter_lua(void); | ||
| 12 | TSLanguage *tree_sitter_zig(void); | ||
| 13 | TSLanguage *tree_sitter_kotlin(void); | ||
| 14 | TSLanguage *tree_sitter_odin(void); | ||
| 15 | TSLanguage *tree_sitter_tcl(void); | ||
| 16 | |||
| 17 | int main() { | ||
| 18 | printf("ABI version compliance check:\n"); | ||
| 19 | printf(" - C %u\n", ts_language_version(tree_sitter_c())); | ||
| 20 | printf(" - CPP %u\n", ts_language_version(tree_sitter_cpp())); | ||
| 21 | printf(" - Python %u\n", ts_language_version(tree_sitter_python())); | ||
| 22 | printf(" - PHP %u\n", ts_language_version(tree_sitter_php())); | ||
| 23 | printf(" - Go %u\n", ts_language_version(tree_sitter_go())); | ||
| 24 | printf(" - Rust %u\n", ts_language_version(tree_sitter_rust())); | ||
| 25 | printf(" - JS %u\n", ts_language_version(tree_sitter_javascript())); | ||
| 26 | printf(" - Lua %u\n", ts_language_version(tree_sitter_lua())); | ||
| 27 | printf(" - Zig %u\n", ts_language_version(tree_sitter_zig())); | ||
| 28 | printf(" - Kotlin %u\n", ts_language_version(tree_sitter_kotlin())); | ||
| 29 | printf(" - Odin %u\n", ts_language_version(tree_sitter_odin())); | ||
| 30 | printf(" - Tcl %u\n", ts_language_version(tree_sitter_tcl())); | ||
| 31 | return 0; | ||
| 32 | } | ||
