[antlr-interest] problem on the grammar of identifier

Zhiyong Zhang zhiyong_zhang5 at yahoo.ie
Wed Oct 25 07:33:55 PDT 2006


Hi,
 
The identifier is supposed to in be the format of "abc.d6f" or "abc.current.dg47". I got ambiguity problem with the lookahead =3 in the lexical grammar, it also reported problem abc.currentAbcdE. Can anybody give me some light?

IDENTIFIER options {testLiterals=true;} : ('a'..'z'|'A'..'Z'|'_')('a'..'z'|'A'..'Z'|'0'..'9'|'_'|':')*  ( (".current."|".") ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|':')+)?;

Thanks in advance.

Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20061025/ae12752e/attachment.html 


More information about the antlr-interest mailing list