Re: interesting push parser use case

2007-09-08 Thread Joel E. Denny
On Sat, 8 Sep 2007, Joel E. Denny wrote: > On Sat, 8 Sep 2007, Bob Rossi wrote: > > > The first issue is that I probably need a way to tell the parser that > > I'm done giving it tokens. That way, it will finish all of it's rules. > > Is there already a way to do this? > > Yacc-generated parsers

Re: interesting push parser use case

2007-09-08 Thread Joel E. Denny
On Sat, 8 Sep 2007, Bob Rossi wrote: > The first issue is that I probably need a way to tell the parser that > I'm done giving it tokens. That way, it will finish all of it's rules. > Is there already a way to do this? Yacc-generated parsers expect the last token in the input stream to be token

interesting push parser use case

2007-09-08 Thread Bob Rossi
Hi, I found an interesting issue when converting my program from the pull parser to the push parser. I used to generate a parser, and then write a thin "main" around the parser. Then I would feed the program a particular file and let it parse it. The file contained a list of gdb/mi output command