[antlr-interest] Magic problem

Mohammed Ibrahim snouto at gmail.com
Thu Sep 6 15:17:06 PDT 2007


Iam trying to parse GUID that is generated randomly by my application , but you know the problem is that this Hash is generated beginning sometimes by numbers and sometimes by letters that is why i wrote this EBNF for it 


stat : r+;
r  : ( LBL_CLIENT DOT NEW_GUID NEWLINE);
NEW_GUID : MIXED ('-' MIXED)*;
MIXED : ((LETTERS|INT))+;
LETTERS : 'a'..'z'+;
INT : '0'..'9'+;
NEWLINE : '\r'?'\n';
DOT : ':';
LBL_CLIENT
 : ('client_model'|'CLIENT_MODEL');
WS : (' '|'\r'|'\n')+ { $channel = HIDDEN;};


I DON'T KNOW WHAT IS THE PROBLEM IT DOESN'T PARSE CORRECTLY , IN OTHER WINDOW IT PARSED CORRECTLY BUT IN MY MAIN APPLICATION GRAMMAR FILE ,IT DOESN'T WANT TO PARSE THE INPUT CORRECTLY.


ANY HELP .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070907/93cc5281/attachment.html 


More information about the antlr-interest mailing list