Skip to content

Cpp, Go, JavaScript, Python2/3: Template rendering error. #2016

Closed
@AndreiPashkin

Description

@AndreiPashkin

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions