tunnelvisionlabs / antlr4

The highly-optimized fork of ANTLR 4 (see README)
Other
73 stars 12 forks source link

Label conflict analysis does not consider baseContext #43

Closed sharwell closed 5 years ago

sharwell commented 5 years ago
input
  : e=expression e=expression2 // unexpected error
  ;

expression
  : ID
  ;

expression2
options { baseContext = expression; }
  : ID
  ;

ID : [a-z]+;