C parser or possible to translate from tree sitter? #1984
ShiinaManatsu
started this conversation in
Ideas
Replies: 1 comment
-
Yes I assume it would be possible to generate Langium grammar files from Tree-sitter JS grammars, but I'm not aware of any such generator. Note that the parser engines behave fundamentally differently: Tree-sitter does LR parsing, Chevrotain does LL parsing. So even if you automatically transform a grammar to Langium, it's rather likely that it won't work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hey guys, I want write a hlsl parser, it is good to base on a c langium parser which I have not found yet, I implement a tree sitter version based on tree-sitter-c, that works pretty well.
I found there is some similarity between langium and tree sitter, looks like can be 1:1 translated maybe?
Beta Was this translation helpful? Give feedback.
All reactions