[antlr-interest] AST Generation

Mohad Nur mr_nur2000 at yahoo.com
Sun Apr 11 18:53:21 PDT 2004


Hi,

I am having some problems creating the correct AST. I have a rule like

Decl: (varDecl)*;

varDecl : varType idlist SEMI;

There are different type of vartypes and i want the final Decl tree to contain all of them but what i am getting right now is only the last declaration as it overwrites the last one. I just want the new variable to be added to the currentAST.

Thanks,

Nur


---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20040411/2444d099/attachment.html


More information about the antlr-interest mailing list