[antlr-interest] non-existed char met
=?gb2312?q?=CB=EF=BC=CD=B8=D5=20Jigang=20(Robert)=20Sun?=
sunjigang1965 at yahoo.com.cn
Mon Jun 5 04:16:25 PDT 2006
With parser rule
symbolId:( FunnyID) EOF;
and lexer rule
OP: ( '@' | '#' | '$' | '%' | '^' | '&'| '?' | '*' | '/' | '='| '<' | '>' | '_' | '.'| '`' |
'\''|'\"'){$setType(FunnyID);} ;
DenotOrFunnyID: (('+'|'-') {$setType(FunnyID);})? NUM{$setType(IntDenot);} ( '.' NUM ( 'E'
('+'|'-')? NUM)? {$setType(RealDenot);})?;
protected NUM:(Digit)+;
I put only one char in source file, '*' could be parsed normally, but when I replaced it with '-',
after a windows popped described in my previuos email, the attached picture popped up. I swear
there is only one character in source file. I expect both '*' and '-' are recognised as FunnyID.
Robert
__________________________________________________
¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?
http://cn.mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TokenBuffer.JPG
Type: image/jpeg
Size: 27565 bytes
Desc: 2611848339-TokenBuffer.JPG
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20060605/1fb987c1/TokenBuffer-0001.jpe
More information about the antlr-interest
mailing list