So in any action for a production such as the expr production and
specifically the expr : ( expr ) {some action}, specifying $<blIdentifier>$
will give expr its type.
I.E
expr : ( expr ) {$<blIdentifier>$; $$ = $<blIdentifier>2;}
On Wed, Aug 4, 2010 at 5:30 PM, Hans Aberg <[email protected]> wrote:
> On 4 Aug 2010, at 21:48, Sasan Forghani wrote:
>
> How do you assign to $$. I've tried $$ = $<blIdentifier>1 or in the (
>> expr ) production $$ = $<blIdentifier>2; I always get an error along the
>> lines that $$ does not have a type.
>>
>
> The same $<something>$, if not declared with %token or %type. See the Bison
> manual, 3.5.2.
>
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison