[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nonterminal symbol types
From: |
John Levine |
Subject: |
Re: nonterminal symbol types |
Date: |
5 May 2011 12:56:14 -0000 |
>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