Help needed regarding a very simple parser

2005-12-14 Thread Zulfiqar Malik
Hi, I was developing a simple parser for the LUA scripting language. The rules of the language is already documented in a shift-reduce style with quite good compatibility with bison's syntax. However, i get strage errors when i try to put that grammar rules in the bison rules section. Like it stat

Re: Help using bison

2005-12-14 Thread Bob Rossi
On Thu, Dec 15, 2005 at 02:08:04AM +0100, Michael Brandt wrote: > On 15/12/05, Bob Rossi <[EMAIL PROTECTED]> wrote: > > > The lemon parser generator uses "inverted flow-of-control", the > > > user/lexer calls the parser for each input token. > > > > > > See http://www.hwaci.com/sw/lemon/ > > > > Wo

Re: Help using bison

2005-12-14 Thread Michael Brandt
On 15/12/05, Bob Rossi <[EMAIL PROTECTED]> wrote: > > The lemon parser generator uses "inverted flow-of-control", the > > user/lexer calls the parser for each input token. > > > > See http://www.hwaci.com/sw/lemon/ > > Wow, OK, Thanks! Do you know where I would find a lexer to replace flex > that c

Re: Help using bison

2005-12-14 Thread Bob Rossi
On Thu, Dec 15, 2005 at 12:16:07AM +0100, Michael Brandt wrote: > On 14/12/05, Bob Rossi <[EMAIL PROTECTED]> wrote: > > Does bison currently support "inverted flow-of-control"? Do you > > recommend another package for this? Could I come up with some patches > > to modify bison to act this way? > >

Re: Help using bison

2005-12-14 Thread Russell Shaw
Bob Rossi wrote: On Wed, Dec 14, 2005 at 05:22:29PM +1100, Russell Shaw wrote: Bob Rossi wrote: Hi All, I'm writing a GPL'd ncurses front end to GDB, called CGDB. Did you know gdb already has a curses frontend? gdb -tui In particular, according to this webpage, it seems like I'm looking

Re: Help using bison

2005-12-14 Thread Michael Brandt
On 14/12/05, Bob Rossi <[EMAIL PROTECTED]> wrote: > Does bison currently support "inverted flow-of-control"? Do you > recommend another package for this? Could I come up with some patches > to modify bison to act this way? Hi, The lemon parser generator uses "inverted flow-of-control", the user/l

Re: Help using bison

2005-12-14 Thread Bob Rossi
On Wed, Dec 14, 2005 at 05:22:29PM +1100, Russell Shaw wrote: > Bob Rossi wrote: > >Hi All, > > > >I'm writing a GPL'd ncurses front end to GDB, called CGDB. > > Did you know gdb already has a curses frontend? > > gdb -tui In particular, according to this webpage, it seems like I'm looking for s

Re: Help using bison

2005-12-14 Thread Bob Rossi
On Wed, Dec 14, 2005 at 05:22:29PM +1100, Russell Shaw wrote: > Bob Rossi wrote: > >Hi All, > > > >I'm writing a GPL'd ncurses front end to GDB, called CGDB. > > Did you know gdb already has a curses frontend? > > gdb -tui Yeah, I do. I have several motivations for the project that I've been wor