[Top][All Lists]
[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.
>
- Re: %left is not working, (continued)
- Re: %left is not working, Hans Aberg, 2010/08/03
- Message not available
- Re: %left is not working, Hans Aberg, 2010/08/03
- Message not available
- Re: %left is not working, Hans Aberg, 2010/08/03
- Re: %left is not working, Sasan Forghani, 2010/08/04
- Re: %left is not working, Hans Aberg, 2010/08/04
- Re: %left is not working, Sasan Forghani, 2010/08/04
- Re: %left is not working, Hans Aberg, 2010/08/04
- Re: %left is not working, Chris verBurg, 2010/08/04
- Re: %left is not working, Sasan Forghani, 2010/08/04
- Re: %left is not working, Hans Aberg, 2010/08/04
- Re: %left is not working,
Sasan Forghani <=
- Re: %left is not working, Hans Aberg, 2010/08/05
Re: %left is not working, Hans Aberg, 2010/08/03