Christopher Laco wrote: > "mismatched tree node: DOCUMENT expecting DOCUMENT" > > > I'm not having very good luck trying to do simple things apparently. > > My ToStringTree: > > > (DOCUMENT (PRINT 'variable')) > > > My tree grammar: > > > document > > : ^(DOCUMENT statement*) > > ; > > statement > > : ^(PRINT LITERAL) > > ; > > Sounds like your tokens are out of sync. Regen your lexer/parser, then regen your tree walker. The token definitions will then be in sync and you will at least know that that was or was not the issue.
Jim 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 -~----------~----~----~----~------~----~------~--~---
