rescript-lang / rescript-lang/tree-sitter-rescript
Convert tree-sitter to Lezer trees for CodeMirror 6 support
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 60
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by reviewing the tree-sitter parser and the linked CodeMirror discussion about mapping tree-sitter trees to Lezer trees; done would mean a working shim that lets the ReScript playground use the current CodeMirror 6 parser interface.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100