tree-sitter-rescript
tree-sitter-rescript copied to clipboard
Convert tree-sitter to Lezer trees for CodeMirror 6 support
I always wanted to upgrade the ReScript online playground to the newest CodeMirror version, but CM transitioned from regex based language parsers to a more sophisticated parser system called Lezer.
If the tree-sitter is stable enough to reflect all parts of the language, I thought it would be interesting to try to use the tree-sitter parser as a shim until I figured out how to proceed writing a dedicated Lezer parser.
https://discuss.codemirror.net/t/mapping-tree-sitter-trees-to-lezer-trees/2362
Yes, the grammar is stable enough and covers most quirky cases, so anyone can try to port to Lezer.
With this issue, are we trying to summon someone to do this? :)
Yeah, I kinda put this note here in case someone feels inspired to try it.