[antlr-interest] Decision can match input such as "'*'" using multiple alternatives: 1, 2
    Sergei Politov 
    spolitov at gmail.com
       
    Wed Nov 30 08:46:31 PST 2011
    
    
  
Hello,
  I'm new to ANTLR. I tried to port my grammar from Boost.Spirit to ANTLR
and faced the following warning:
Decision can match input such as "'*'" using multiple alternatives: 1, 2
  I made a minimal grammar to reproduce it (also in attach):
======================
grammar X ;
s : e EOF ;
e : t ;
t : f ('*' f)* ;
f : NUM | '-' e ;
NUM : '0'..'9'+ ;
======================
  Really I don't understand the described issue.
  I don't know input that could match in multiple ways.
  Please clarify the situation.
Best Regards,
  Sergey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X.g
Type: application/octet-stream
Size: 90 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20111130/da943e9f/attachment.obj 
    
    
More information about the antlr-interest
mailing list