[antlr-interest] determining tokens at runtime

Jon jon.forums at gmail.com
Tue Jun 22 09:00:06 PDT 2010


> The lexer rule should be...
> ED: .;
> Dot will match any one character.  Then it works as expected.

Thanks for your insight...I'm off and running again!  It seems so obvious now that you showed me ;)

Back to the TDAR book and thinking how the wide-open-lexer-rule-plus-predicate validation can best be modularized so I don't have to repeat the predicate all over the grammar.

Jon


More information about the antlr-interest mailing list