You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Upstream maintainers made it clear that they don't want C++ parsers going forward: tree-sitter/tree-sitter#1246 (comment)
The scanner will have to be rewritten in C.
Bits that we use from C++
.action()
notation, convert back to struct and prefixed function nameschar32_t
: back touint32_t
. Lose a bit of type strictness.The text was updated successfully, but these errors were encountered: