[antlr-interest] general Poblem , please help
Mohammed Ibrahim
snouto at gmail.com
Sat Sep 8 08:51:32 PDT 2007
hello professors ,
actually , i am building a network application layer protocol where two clients will talk together , actually the administrator needs to write any any any characters in a message and this message is delivered through the network , the real problem is , ANTLR finds some errors in treating some characters whether they are part of the message itself that the administrator sent or from the command syntax itself , here is the syntax
BODY: " Message " ;
Message : (('a..'z'|'A'..'Z')|CHUNKS|INT)+;
CHUNKS: ('$'|'^'|'~'|'@'|'#'|';'|DOT|','|'*'|'&'|RIGHTPAR|LEFTPAR|'?'|']'
| '['|'{'|'}'|'`'|'!'|'%'|'('|')'|'='|'+'|'\\'|SLASH|'"');
INT:'0'..'9'+;
ANLTR can't recognize between the first double qoutes of the command itself or the double qoutes in the command Message itself .
any ideas to make it distinguishes that Please.
it is very important professors .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070908/5da22c77/attachment.html
More information about the antlr-interest
mailing list