I can put an @members section in a grammar without any problem, but when I put one in a tree grammar, I get a bunch of exceptions. It ignores everything after the @members section. BTW, I'm trying to get access to the error output, so I can show it to the user.
Exception: unexpected token: tokens { grammar Expr; options { output=AST; ASTLabelType=CommonTree; backtrack=true; } @members { public String getTokenErrorDisplay(Token t) { return t.toString(); } } tokens { DIV = '/' ; EQUAL = '==' ; GREATER_OR_EQUAL = '>=' ; GREATER_THAN = '>' ; ... Can tree grammars handle @members sections? or am I doing something wrong? Thanks, srb 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.