[antlr-interest] Again simple nondeterminism problems
Ersin Er
ersin_er at yahoo.com
Tue Aug 23 01:08:48 PDT 2005
Hi all,
I'll be glad if you can help me about the following nondeterminism
problems:
OID: NUMERICOID | DESCR;
NUMERICOID: NUMBER (DOT NUMBER)+;
NUMBER: DIGIT | ( LDIGIT ( DIGIT )+ );
protected DOT: '.';
protected DIGIT: '0' | LDIGIT;
protected LDIGIT: '1'..'9';
protected DESCR: ALPHA ( ALPHA | DIGIT | '-' )*;
protected ALPHA: 'A'..'Z' | 'a'..'z';
and I have literal rules like in the lexer:
ID_AND: "and";
ID_OR: "or";
ANTLR complains about two nondeterminisms. The first one is for
NUMERICOID (and OID also) and NUMBER and the second one is for DESCR
(and OIS also) and ID_AND, ID_OR...
Thanks in advance.
-- Ersin
--
Ersin ER
Arastirma Gorevlisi
Hacettepe Universitesi
Bilgisayar Muhendisligi Bolumu
__________________________________
Yahoo! Mail for Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
More information about the antlr-interest
mailing list