[antlr-interest] Display comment node in grammar
benjamin.b.lenz at daimlerchrysler.com
benjamin.b.lenz at daimlerchrysler.com
Tue Sep 25 01:32:09 PDT 2007
Hi folks,
I almost finished to rewrite the available Java.g3 grammar to create an
AST. As final step I am trying to create just a single node called
"comment". So always when in the code "/* stuff */" exists it should
replace all the nodes from the AST with just a node "comment".
As I know is that the parser reads the comments as a single token. So is
there a similiar function in the grammar like the rewrite rules (just for
tokens)?
Thanks a lot.
Ben
If you are not the addressee, please inform us immediately that you have received this e-mail by mistake, and delete it. We thank you for your support.
More information about the antlr-interest
mailing list