[antlr-interest] about lexer
=?gb2312?q?=CB=EF=BC=CD=B8=D5=20Jigang=20(Robert)=20Sun?=
sunjigang1965 at yahoo.com.cn
Thu May 25 06:05:02 PDT 2006
To keep lexical grammar tidy, I would like define a rule in several lines, for example,
ID: UpperCase | LowerCase;
UpperCase: 'A'..'Z';
LowerCase: 'a'..'z';
The UpperCase and LowerCase are only used for convenience, there is no such token name used in
parser. But it complains.
Is any way to sort it out?
Thanks.
Jigang
___________________________________________________________
Mp3·è¿ñËÑ-иèÈȸè¸ßËÙÏÂ
http://music.yahoo.com.cn/?source=mail_mailbox_footer
More information about the antlr-interest
mailing list