antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

baseContext should check label types across rules

Open sharwell opened this issue 6 years ago • 0 comments

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;

sharwell avatar Jan 09 '19 15:01 sharwell