Linking two yacc (y.tab.o) files

Alan S. Mazer alan at cogswell.Jpl.Nasa.Gov
Fri Feb 23 12:09:03 AEST 1990


In article <25E34681.3787 at deimos.cis.ksu.edu>, jxf at phobos.cis.ksu.edu (Jerry Frain) writes:
| I created a yacc file for each parser, tested them separately, and prepared
| to link the objects into a larger program.  Unfortunately, that's as far as
| I got.  Since yacc creates a lot of global variables when it makes the
| y.tab.c files, there were many conflict errors when I tried to link the two
| files.

We have a program which uses two different grammars and the Makefile
runs one y.tab.c through sed to change the names of things.  I think
there's 40-some things to change.  Haven't had any problems with this.
If you or anyone else want it, you're welcome.

-- Alan				# "But seriously, what could go wrong?"
   ..!cit-vax!elroy!alan
   alan at elroy.jpl.nasa.gov



More information about the Comp.unix.wizards mailing list