Why does it say ERROR? What am I doing wrong? | Writing my own parser #3105
-
Hi there, I am new to using tree-sitter and writing parser and appreciate some help on what I am doing wrong.
Now for this section here's my grammar file:
Here's my output:
I am not sure why it just comes out as ERROR? The form_construct works but ifdef block is not working. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I didn't get any errors when trying to parse the test the sample input with your grammar. Here's a screenshot: Is it possible you didn't use the |
Beta Was this translation helpful? Give feedback.
-
Well I guess you are right. I may have just not did tree-sitter generate. Thank you so much for running the code. |
Beta Was this translation helpful? Give feedback.
I didn't get any errors when trying to parse the test the sample input with your grammar. Here's a screenshot:
Is it possible you didn't use the
tree-sitter generate
command to regenerate the grammar after some changes were made to yourgrammar.js
?