Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scanner: rewrite in C #50

Merged
merged 1 commit into from
Oct 19, 2023
Merged

scanner: rewrite in C #50

merged 1 commit into from
Oct 19, 2023

Conversation

alaviss
Copy link
Owner

@alaviss alaviss commented Oct 19, 2023

As the tree-sitter project actively discourage C++ scanners, it was clear that we have to adapt our parser to C to maintain interop with future direction of the ecosystem.

The logic and code structure of this rewrite is nearly identical to the C++ version. This is intentional to prevent behavior bugs from creeping in, and an overhaul will come at a later date.

Right now this code runs with no crashes and seems to work as well as its C++ predecessor.

Fixes #44

As the tree-sitter project actively discourage C++ scanners, it was
clear that we have to adapt our parser to C to maintain interop
with future direction of the ecosystem.

The logic and code structure of this rewrite is nearly identical to the
C++ version. This is intentional to prevent behavior bugs from creeping
in, and an overhaul will come at a later date.

Right now this code runs with no crashes and seems to work as well as
its C++ predecessor.

Fixes #44
@alaviss alaviss merged commit 1e08b05 into main Oct 19, 2023
14 of 18 checks passed
@alaviss alaviss deleted the rwic branch October 19, 2023 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider a C rewrite of the scanner
1 participant