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

Convert tree-sitter to Lezer trees for CodeMirror 6 support #196

Open
ryyppy opened this issue Feb 3, 2023 · 2 comments
Open

Convert tree-sitter to Lezer trees for CodeMirror 6 support #196

ryyppy opened this issue Feb 3, 2023 · 2 comments

Comments

@ryyppy
Copy link
Member

ryyppy commented Feb 3, 2023

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

@nkrkv
Copy link
Collaborator

nkrkv commented Feb 3, 2023

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? :)

@ryyppy
Copy link
Member Author

ryyppy commented Feb 5, 2023

Yeah, I kinda put this note here in case someone feels inspired to try it.

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

No branches or pull requests

2 participants