tunnelvisionlabs / antlr4

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

baseContext should check label types across rules #48

Open sharwell opened 5 years ago

sharwell commented 5 years ago

The following grammar should produce an error relating to the value label before generating code:

grammar A;

a : 'a';
b : 'b';
y1 : value=a;
y2 options { baseContext = y1; } : value=b;