Re: any lex/yacc debuggers????

"Scott Nicol" <sbnicol@mindspring.com>
7 Apr 2002 00:48:06 -0500

          From comp.compilers

Related articles
any lex/yacc debuggers???? varunyagain@rediffmail.com (2002-04-06)
Re: any lex/yacc debuggers???? sbnicol@mindspring.com (Scott Nicol) (2002-04-07)
Re: any lex/yacc debuggers???? k.prasad@attbi.com (Kamal R. Prasad) (2002-04-07)
Re: any lex/yacc debuggers???? sbnicol@mindspring.com (Scott Nicol) (2002-04-10)
Re: any lex/yacc debuggers???? sbnicol@mindspring.com (Scott Nicol) (2002-04-13)
Re: any lex/yacc debuggers???? lex@cc.gatech.edu (Lex Spoon) (2002-04-29)
| List of all articles for this month |
From: "Scott Nicol" <sbnicol@mindspring.com>
Newsgroups: comp.compilers
Date: 7 Apr 2002 00:48:06 -0500
Organization: EarthLink Inc. -- http://www.EarthLink.net
References: 02-04-034
Keywords: yacc, debug
Posted-Date: 07 Apr 2002 00:48:06 EST

"Varun Yagain" <varunyagain@rediffmail.com> wrote in message
> can anybody tell me where i can find a debugger for lex and yacc tools
> for the unix environment?


MKS Yacc had something like this. It was curses based, and allowed
you to step through (and set breakpoint? can't remember) the grammar.
There were a few windows - input, yacc stack, command input, source
file, IIRC.


This wasn't difficult to do. Almost everything you need is already
generated. I think 2 extra tables were generated - string
representations of tokens and states. It should be straightforward to
do the same thing with flex/bison.
--
Scott Nicol
sbnicol@mindspring.com
[If you turn on YYDEBUG, the strings are there for you. -John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.