[antlr-interest] Inherent lexer nondeterminism

Omry Yadan omry at yadan.net
Thu Mar 8 05:46:22 PST 2007


I have the following problem:

my language have symbols (the usual CHAR (CHAR | DIGIT)*) and also FILE, 
which can contains things that a symbol cannot (dot, colon etc).

my parser knows exactly when to expect FILE and when to expect SYMBOL, 
but my lexer doesn't.

any suggestions as to how to overcome this non-determinism?


    Omry.




More information about the antlr-interest mailing list