Skip to content

0.2.0: scanner translated to C

Compare
Choose a tag to compare
@alaviss alaviss released this 19 Oct 23:41
· 69 commits to main since this release
0.2.0
a43d806

With the tree-sitter project not looking to support C++ scanners in the
long run, the scanner has been translated to C.

This translation was done carefully to not introduce any regression and
is expected to be bug-for-bug compatible with the older version. However
as this could break horribly, I'm opting to issue a new minor version.

With that done, let's dive into parsing statistics:

Total parses: 3987;
successful parses: 3919;
failed parses: 68;
success percentage: 98.29%

We saw a small uptick in number of successful parses, but nothing
out of the ordinary.

Notable changes in this cycle:

Parsing improvements

  • Trailing semicolon in parenthesized expressions are now recognized
    (#47).

Query changes

  • Short raw string opening has been converted to a literal choice (#46).
    This allows query writer to easily distinguish between string
    variants via the opening token.

Implementation changes

  • Complete translation of the scanner to C (#50).