Hello, everybody!
I have a very simple question. For example, I have the following grammar
rule:
FirstToken : Second Third;
And I want to generate the following tree from such rule (I mean Tree in
Java terms):
FirstToken
/ \
Second Third
How should I rewrite my grammar rule? As far, as I understand, I can use '^'
and '!' operators for it. But I don't understand how to make First Token a
root of this tree.
Thanks in advance
--
Sergey Smolov
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.