antlr/antlr4 — Issue #8: default all rule refs to have labels in _localctx with same name with option to turn off
Author: parrt
Created: 2012-02-11 19:17:58+00:00
State: open
Labels: trees

RuleContext object labels:

e : e '+' egets labels e1 and e2
a : e (',' e)\*gets List e and NO e1, e2

Rules with multiple alternatives and non-unique elements, get no automatic labels. The reason is, you can get rules like this
a : ID\+ \| ID ;

have to label alt or element. even for e : expr '++' | expr '--' ;

-Xno-auto-ctx-labels option or something like that to turn off all of this overhead? better name?

Try to get labeled alt labels into alt context.