At 07:56 16/10/2008, LdK ^^ wrote: >I have a problem when i use multiple treeparser, >the first is in same file that the parser
You can't make a tree parser in the same grammar file as your lexer/parser. >but the second is in a other file and i always get an "" when i >make a get.text() in this tree parser When you construct the tree parser (in your driver code), you need to pass the AST node stream from the parser into it and you need to give it access to the underlying token stream as well. List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/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 -~----------~----~----~----~------~----~------~--~---
