Linking two yacc (y.tab.o) files
Wayne D. Johnson
johnson at ncrons.StPaul.NCR.COM
Wed Feb 28 05:52:51 AEST 1990
In article <39 at mycroft.stanford.edu> kon at mycroft.Stanford.EDU (Ronnie Kon) writes:
#In article <25E34681.3787 at deimos.cis.ksu.edu> jxf at phobos.cis.ksu.edu (Jerry Frain) writes:
#> 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.
#
# The kludge is to simply sed with the command
#
# sed 's/\<yy/parser1_yy/g' < y.tab.c > parser1.c
I have seen an implementation where they #defined the yy as
somthing else before the compile. Who needs sed.
--
Wayne Johnson | Is a baby's life worth more than the right to
NCR Comten, Inc. | make a choice? Babies are people too.
Roseville MN 55113 +-----------------------------------------------------
(Voice) 612-638-7665 (E-MAIL) W.Johnson at StPaul.NCR.COM
More information about the Comp.unix.wizards
mailing list