[antlr-interest] newbie question

ali azimi aliaazimi at yahoo.com
Wed Jul 4 15:53:18 PDT 2007


Hi,
   
  The followings are part of the grammar I have written. When I try to generate code, two error messages appears which I have mentioned them at the bottom. Could you please tell me why?
   
  Thank you very much in advance
   
  word    :(alphanumeric|.)*alphanumeric(alphanumeric|.)*
              ;
  alphanumeric
              :uppercase||national|lowercase|decimaldigit
              ;
  decimaldigit
              :'a'..'z'
              ;
  national
              :'#'|'@'|'"'|'$'|'['|']'|'{'|'}'|'^'|'~'
              ;
  lowercase
              :'a'|..|'z'  
              ;
  uppercase
              :'A'|..|'Z'
              ;
   
  [23:46:43] error(100): signaltaskDecision.g:368:7: syntax error: antlr: signaltaskDecision.g:368:7: unexpected token: ..
  [23:46:43] error(100): signaltaskDecision.g:372:7: syntax error: antlr: signaltaskDecision.g:372:7: unexpected token: ..
   
  Best wishes,
  Al

       
---------------------------------
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070704/50d88c5b/attachment.html 


More information about the antlr-interest mailing list