Fog Creek Software
Discussion Board

Yacc pre-processing question

So, a project I'm working on has a very large yacc file with hundreds of rules. I was doing some work on it today and thought how nice it would be if there was something which could extract the rules into another document to give me a more easily viewed run down on my language.

Of course, that wouldn't be too hard (probably an hours work or so), but it got me thinking -- does anyone know of any software which assists with the maintainence of lex/yacc parsers? (I already googled and couldn't find anything which fell in this ball park).

Steven C.
Wednesday, April 23, 2003

I haven't used these, but you might want to take a look at:

The saying goes that yacc is "parsimonious".  #8)

Wednesday, April 23, 2003

Thanks for the links. I think both of those companies offer items which are a bit more heavy weight than what I was interested in -- that is, I already have a pretty-much working grammar. I just need to maintain it overtime, for which some code browsing tools specific to the yacc format would be useful.

I'll probably just roll my own as I think of things I suppose. :)

Steven C.
Wednesday, April 23, 2003

You can consider some perl scripting combined with doxygen (

Wednesday, April 23, 2003

*  Recent Topics

*  Fog Creek Home