[antlr-interest] Re: strange lexical nondeterminism
Simon Kellett
skellett at anitesystems.de
Thu Mar 11 03:18:23 PST 2004
> You may have luck doing this:
> REL_TIME: '0'..'2' '0'..'9' ':' '0'..'5' '0'..'9';
> REL_TIME2: '0'..'9' '0'..'9' '0'..'9' '.' '0'..'2' '0'..'9' ':'
> '0'..'5' '0'..'9' {$setType(REL_TIME);};
> INT: ('0'..'9')+;
Thanks, yes this did remove the warning, and it also works !!
And thanks Lubos for the explaination of the internal workings.
However I think the question remains: given that ANTLR produces the
*correct* code, then why does it *warn me* about a non-determinism.
To me the message is just confusing !! Can it not be just dropped ?
Thanks, Simon
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