[antlr-interest] Strange ambiguous decision warning
Jeroen Steenbeeke
jeroen at pbemengine.nl
Wed Apr 2 01:32:17 PDT 2008
I simplified your grammar a bit to illustrate the problem
> sequenceType : (EMPTY_SEQUENCE '(' ')')
> | (itemType occurrenceIndicator) => (itemType
> occurrenceIndicator)
> | itemType ;
> itemType : atomicType ;
> atomicType : qNameOrIdent ;
> qNameOrIdent : EMPTY_SEQUENCE;
Every single choice in sequenceType can start with EMPTY_SEQUENCE, so
ANTLR does not have a clue which one to pick.
More information about the antlr-interest
mailing list