Re: interesting push parser use case

2008-02-22 Thread Bob Rossi
On Wed, Feb 20, 2008 at 01:25:36PM -0500, Joel E. Denny wrote: > On Wed, 20 Feb 2008, Bob Rossi wrote: > > > Sorry for the extremely long delay. I'm trying out your suggestion now. > > Whenver I put a struct in the parse param like so, > > %parse-param { struct gdbmi_pdata *gdbmi_pdata } > > I g

Re: interesting push parser use case

2008-02-21 Thread Laurence Finston
On Wed, 20 Feb 2008, Bob Rossi wrote: > Hi Laruence, > > Sorry for the extremely long delay. No need to apologize. > I'm trying out your suggestion now. > Whenver I put a struct in the parse param like so, > %parse-param { struct gdbmi_pdata *gdbmi_pdata } > I get a compiler warning, > ../.

Re: interesting push parser use case

2008-02-20 Thread Joel E. Denny
On Wed, 20 Feb 2008, Bob Rossi wrote: > Sorry for the extremely long delay. I'm trying out your suggestion now. > Whenver I put a struct in the parse param like so, > %parse-param { struct gdbmi_pdata *gdbmi_pdata } > I get a compiler warning, > ../../../../cgdb/lib/gdbmi/src/gdbmi_grammar.h:12

Re: interesting push parser use case

2008-02-20 Thread Bob Rossi
On Sun, Sep 09, 2007 at 11:03:13AM +0200, [EMAIL PROTECTED] wrote: > > On Sat, 8 Sep 2007, Bob Rossi wrote: > >> The second issue is slightly more fuzzy. Essentially, after each token I > >> give to the parser, it would probably be useful to know if it just > >> finished a particular rule, and if s

Re: interesting push parser use case

2007-09-09 Thread lfinsto1
> 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 b

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