Replies: 2 comments 1 reply
-
There's not a lot to go on with this question. I general, this seems like a job for the Can you give an example of your current grammar, plus some specific input (your example is rather vague), and the errors you're getting? |
Beta Was this translation helpful? Give feedback.
-
I have a similar issue, which definitely fits the name of this discussion. I was in the process of writing a tree-sitter grammar a few weeks ago and I stumbled on a case I couldn't handle easily. The language is scilab and it has a way to convert functions into CLI-style calls :
Due to this behaviour, I'm unable to properly parse this example :
We generally want to parse this as an addition of identifier and number, but since functions have precedence over addition here, I'm not well-versed into LR grammars, but is it still possible to parse scilab with tree-sitter or does this property make it impossible? (I can still parse a subset without the properly and advise against using it though as a warning). |
Beta Was this translation helpful? Give feedback.
-
I am working on highlighting syntax for a form-like language, e.g.
where form1, 3 and 5 have different syntaxes. It is also possible that the user uses form2 or form4, etc.. And I am wondering how do I configure tree-sitter for this.
Beta Was this translation helpful? Give feedback.
All reactions