help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: %left is not working


From: Sasan Forghani
Subject: Re: %left is not working
Date: Thu, 5 Aug 2010 08:01:21 -0400

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 <address@hidden> 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.
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]