[antlr-interest] Followed by (PEG style predicates)

andreas.meyer at smartshift.de andreas.meyer at smartshift.de
Sun Apr 26 02:17:16 PDT 2009


I'm not 100% sure why ANTLR did not generate code for the syntactic predicate, but it seems that you wanted to do things in the lexer, that are now done in the parser: probably you wanted all those pn_start, name_part etc rules to be lexer rules. If so, you have to start them with a capital letter (that's the rule in ANTLR to distinguish lexer from parser rules) Also, you might need to declare "name_part" as a fragment rule, to not interfere with the other tokens.

Best,
Andreas


More information about the antlr-interest mailing list