modifications to yyparse for re-entrancy

A. Lester Buck buck at siswat.UUCP
Thu Feb 1 17:59:33 AEST 1990


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 at siswat.lonestar.org  ...!texbell!moray!siswat!buck



More information about the Comp.lang.c mailing list