[antlr-interest] manual AST creation
Ben
ben at spectrum.uni-bielefeld.de
Fri Sep 12 03:47:41 PDT 2003
Hi,
I am totaly new to ANTLR, so forgive me, if I ask something stupid
or obvious...
Here is a part of a very simple grammar I use for testing
start!: b:(B)* NEWLINE;
{#start = #([B,"start"],b);};
I would like to construct a tree that looks like that
(start B B B B...). The action above does not work. I also
tried to substitute (B)* with another rule, but that does not
work, too. I believe that I am missing some basic understanding
here. Can someone enlightmen me??
Thank you very much,
Ben
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list