Re: how to get left hand side symbol in action

Giacinto Cifelli <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <CAKSBH7G+1EmsTAZVxfy9UEmGvX07f8KdSyqVcDzPAGjMBWvQdw@mail.gmail.com>
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 <[email protected]> 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
> _______________________________________________
> [email protected] https://lists.gnu.org/mailman/listinfo/help-bison

_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.