[antlr-interest] ambiguity identifier
Zhiyong Zhang
zhiyong_zhang5 at yahoo.ie
Mon Oct 23 10:11:33 PDT 2006
Hi,
The identifier is supposed to in be the format of "abc.d6f" or "abc.current.dg47".
I got identifier ambiguity problem with the following lexical grammar, can anybody point some light.
IDSTART : ('a'..'z'|'A'..'Z'|'_')('a'..'z'|'A'..'Z'|'0'..'9'|'_'|':')*;
IDEND : ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|':');
IDENTIFIER options {testLiterals=true;} : (IDSTART)
(DOT) (CURRENT) => (IDSTART)((DOT)(CURRENT)(DOT)(IDEND)+)? | (IDSTART) ((DOT)(IDEND)+)?;
....
CURRENT : "current";
DOT : '.';
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20061023/9342eb6a/attachment.html
More information about the antlr-interest
mailing list