>formal_port_element
>        : .SIGNAL. {g_list_type = Parser::PORT;}
>          identifier_list
>          Colon {g_list_type = Parser::UNKNOWN;}
>          .mode. { design.portSpecs($4);}
>          type_mark
>          .constraint.
>          .BUS.
>          .VarAsgn__expression.
>        ;
>My error is the following : $4 of 'formal_port_element' has no declared
>type.
>Which seems strange to me as $4 is '.mode.' rule

Nope.  $4 is Colon.  Embedded actions are turned into rules that
reduce to an unnamed symbol.  If you want to refer to your .mode. it
would be $6.

R's,
John

_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to