[antlr-interest] Error in predicate logic

Terence Parr parrt at cs.usfca.edu
Wed Feb 14 17:53:05 PST 2007


Hi Harmut,

Hmm...that is suspicious:

ID   :
     (AA DIGIT) => AA
   | (AAB DIGIT) => AAB
   | ('a'..'z'|'A'..'Z') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')+
   ;

AAB collides with 3rd alt as does AA so it should test synpred1 then  
synpred2 then 3rd alt (no pred).  Odd.

Adding to bug db.

Ter


More information about the antlr-interest mailing list