[antlr-interest] Confused by warnings

Sam Barnett-Cormack s.barnett-cormack at lancaster.ac.uk
Tue Apr 21 07:35:16 PDT 2009


So, I have this rule:

setting
   : (LCURL)=>settingLCURL
   | (LCID|externalValueReference)=>referencedValue
   | typeornull
   | value
   | object
   ;

And I'm getting warnings that multiple choices can match input such as 
LCID or LCURL. It's true that a lot of the options can match either, but 
this should be short-circuited by the syntactic predicates, shouldn't it?

None of the rules referenced have any errors or warnings.

Hoping someone has an idea,

Sam (BC)


More information about the antlr-interest mailing list