[comp.lang.c] modifications to yyparse for re-entrancy

buck@siswat.UUCP (A. Lester Buck) (02/01/90)

I have an application that has four parsers using the same yacc grammar.
I generate four full copies of yyparse and globally replace conflicting
symbols.  Now I am interested in reducing code size by sharing as much of
yyparse as possible between the four parsers.

Does anyone have any advice or tricks for converting yyparse into a
re-entrant form?  I was thinking of information such as a list of variables
and data structures that must be kept private.

I will summarize whatever I learn if there is any interest.

Thanks alot!

-- 
A. Lester Buck     buck@siswat.lonestar.org  ...!texbell!moray!siswat!buck