help-bison
[Top][All Lists]
Advanced

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

Re: how to get left hand side symbol in action


From: r0ller
Subject: Re: how to get left hand side symbol in action
Date: Mon, 6 May 2019 14:34:08 +0200 (CEST)

Yes, correct: I'd need the non terminal symbol itself.

Best regards,
r0ller

-------- Eredeti levél --------
Feladó: Uxio Prego < address@hidden (Link -> mailto:address@hidden) >
Dátum: 2019 május 6 14:30:10
Tárgy: Re: how to get left hand side symbol in action
Címzett: Giacinto Cifelli < address@hidden (Link -> mailto:address@hidden) >

I thought they mean the [non terminal] **symbol**,
instead of the actual object?

Regards,

> On 6 May 2019, at 14:27, Giacinto Cifelli <address@hidden> wrote:
>
> Hi,
>
> you refer to the left-hand side with $$. Provided it has a 'printable'
> type (int, char *, string), it should output.
>
> BR,
> Giacinto
>
> On Mon, May 6, 2019 at 11:28 AM r0ller <address@hidden> wrote:
>>
>> Hi All,
>>
>> Is it possible in *any* way to get the left hand side symbol in an action of 
>> a rule? Say, I have:
>>
>> A : B C
>> {<!-- -->
>> std:cout<<"left hand side symbol is:"<<???
>> };
>>
>> I tried to find it out myself and googled a lot but didn't find anything:(
>>
>> Best regards,
>> r0ller
>> _______________________________________________
>> address@hidden https://lists.gnu.org/mailman/listinfo/help-bison
>
> _______________________________________________
> address@hidden https://lists.gnu.org/mailman/listinfo/help-bison
 


reply via email to

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