Questions tagged [tree-grammar]
18 questions
0
votes
1 answer
The following sets of rules are mutually left-recursive TREE GRAMMAR
I have a complete parser grammer than generates an AST which i could say is correct using the rewrite rules and tree operators. At the moment i am stuck at the phase of creating a tree grammar.I have this error:
The following sets of rules are…

Undisputed007
- 639
- 1
- 10
- 31
0
votes
0 answers
How does one escape left/right braces in ANTLR3 header sections?
I have an ANTLR3 tree grammar with C as the target language. This tree grammar actually generates C++ objects and thus needs to include the header(s) for these classes. I use the @header section for this. However, in the output, there is an extern C…

Sion Sheevok
- 4,057
- 2
- 21
- 37
0
votes
1 answer
node from line 0:0 mismatched tree node: UNIT expecting UNIT
What does this error mean? Notice it expected a UNIT node and got what it was expecting...
Phase_2.g: node from line 0:0 mismatched tree node: UNIT expecting UNIT

pedro
- 43
- 1
- 7