Bison -v Stack Interpretation

2023-12-20 Thread Dan Ohlsson
Hello! I have difficulties understanding the stack content when executing bison with the -v options. Please explain or give reference to where I can find information! BR

Re: Bison -v Stack Interpretation

2023-12-20 Thread James K. Lowden
On Wed, 20 Dec 2023 19:58:26 +0100 Dan Ohlsson wrote: > I have difficulties understanding the stack content when executing > bison with the -v options. Please explain or give reference to where > I can find information! That's a really big question, Dan. Do you want to come to Brussels in Febr

Re: Bison -v Stack Interpretation

2023-12-20 Thread Steve Litt
James K. Lowden said on Tue, 19 Dec 2023 21:11:41 -0500 >On any given token, the parser either shifts the token onto its stack, >or reduces the stack. To me, all the interesting stuff happens when >reducing, because that's literally where the action is. I'm puzzled about the words "stack", "sh

Re: Bison -v Stack Interpretation

2023-12-20 Thread Piotr Siupa
The manual has a nice explanation of those concepts: https://www.gnu.org/software/bison/manual/html_node/Algorithm.html Regards, Piotr On Thu, Dec 21, 2023 at 6:51 AM Steve Litt wrote: > James K. Lowden said on Tue, 19 Dec 2023 21:11:41 -0500 > > >On any given token, the parser either shifts t