[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: |
Wed, 4 Aug 2010 08:17:11 -0400 |
I apologize for my lack of understanding. You said the next step is to
clean it up in the actions... please clarify?
On Tue, Aug 3, 2010 at 6:13 PM, Hans Aberg <address@hidden> wrote:
> You seem to do it already by the strdup(). The next step would be to clean
> it up in the actions.
>
>
> On 3 Aug 2010, at 23:13, Sasan Forghani wrote:
>
> Yes the lexer is generated by flex. In flex script, I have the actions:
>>
>> {addop} {yylval.blOperator = strdup(yytext); return BL_ADDOP;}
>> {identifier} {yylval.blIdentifier = strdup(yytext); return BL_IDENTIFIER;}
>>
>> How do I allocate $$ a buffer? Each time I try $$ = $<blIdentifier># I
>> get an error that states $$ does not have a type.
>>
>> Finally, please clarify keep the cc to the list.
>>
>> Thanks again for the response.
>>
>
>
>
- %left is not working, Sasan Forghani, 2010/08/03
- 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 <=
- 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, 2010/08/05
- Re: %left is not working, Hans Aberg, 2010/08/05
Re: %left is not working, Hans Aberg, 2010/08/03