Skip to content

Rewrite the scanner in C

Tree-sitter removed C++ support for external scanners in v0.24.0.
I updated the tree-sitter-cli to make use of <tree_sitter/alloc.h> and <tree_sitter/array.h> to replace <deque> from STL.
Unfortunately, the CLI no longer accepts --no-bindings when generating the parser, hence the new bindings.

Besides src/scanner.c and changes to package.json, everything else was generated by tree-sitter init.

Edited by Ananda Umamil

Merge request reports

Loading