I have a lexer/parser grammar that I am attempting to decouple into a parser, lexer, and a root composite grammar. This grammar has an output=AST that is to be read by a tree grammar parser. When I run the grammar, I get a 'mismatched input' on the first token of the source. The symptom seems to indicate that the generated tokens aren't in sync. Is there a trick to setting up the parser/lexer files so that everything is generated correct? I've noticed that I can't use the 'TokenVocab=lex' option anymore. Instead I need to import the lexer along with the parser. Also, if I import the lexer before the parser, it appears to parse correctly, but crashes in the tree parser with a null pointer exception. thanks.
-- 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.
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
