[antlr-interest] lexical nondeterminism Or rule contain rule

idontwantanidwith2000init idontwantanidwith2000init at yahoo.com
Thu Apr 8 04:30:33 PDT 2004


Hi,
I have one lexical rule that contains another.
STRING: ( 'a'..'z'|'A'..'Z' )+
	;

STRING_LITERAL
  : '"'!
    ( '\\' .
    | ~('"'|'\n'|'\r')
    )*
    ( '"'!
    | // nothing -- write error message
    )
	;

I'm using eclipse.
It's warning me that I have nondeterminism but I'm not using 
STRING_LITERAL and STRING in the same parser rule.
What can I do to avoid this nondeterminism?

Tal.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list