Closed
Description
Here is an example grammar:
grammar Test;
expression: op=NOT args+=expression
| args+=expression (op=AND args+=expression)+
| args+=expression (op=OR args+=expression)+
| IDENTIFIER
;
AND : 'and' ;
OR : 'or' ;
NOT : 'not' ;
IDENTIFIER : [a-zA-Z_][a-zA-Z0-9_]* ;
WS : [ \t\r\n]+ -> skip ;
For Cpp, Go, JavaScript, Python2/3 target languages version 4.7 throws such errors while generating code:
error(32): code generation template recRuleAltStartAction has missing, misnamed, or incomplete arg list; missing isListLabel
For the rest of the languages it works.
I believe that the error is in the templates since in the recRuleAltStartAction
templates for the problematic languages argument isListLabel
is not present while in the templates of the ok-languages it is present.