Re: Question about token stack

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>

> Le 30 août 2020 à 18:06, Ervin Hegedüs <[email protected]> a écrit :
> 
> the documentation shows:
> 
> https://www.gnu.org/software/bison/manual/html_node/Enabling-Traces.html
> 
> the option -t (POSIX Yacc compliant)
> 
> the option --debug (Bison extension)

Have a look at Bison's examples (e.g. https://github.com/akimd/bison/tree/master/examples/c/calc) and in particular:

https://github.com/akimd/bison/blob/b63e3a3352ea13074c5491e40f92b40ce0552004/examples/c/calc/calc.y#L26

https://github.com/akimd/bison/blob/b63e3a3352ea13074c5491e40f92b40ce0552004/examples/c/calc/calc.y#L100
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.