Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!mhres!jv From: jv@mh.nl (Johan Vromans) Newsgroups: comp.lang.perl Subject: Using bison to make perl Message-ID: Date: 25 Dec 89 19:28:55 GMT Sender: jv@mhres.mh.nl Distribution: comp Organization: Multihouse Gouda, the Netherlands Lines: 39 I tried to use bison to make perl, only to find out that there are a few basic misunderstandings between Bison, Configure and Me. It appears that selecting 'bison' instead of 'yacc' only changes the commands yacc -d perl.y mv y.tab.c perl.c mv y.tab.h perly.h to bison -d perl.y mv y.tab.c perl.c mv y.tab.h perly.h However, my version of Bison does not generate y.tab.[ch], but generates perl.tab.[ch] files instead. After changing perl.tab.c to perl.c and perl.tab.h to perly.h, perl.c compiles, but I get compilation errors in toke.c: gcc -c -fpcc-struct-return -O toke.c toke.c: In function yylex: toke.c:186: `yylval' undeclared (first use this function) toke.c: In function scanpat: toke.c:1316: `yylval' undeclared (first use this function) toke.c: In function scansubst: toke.c:1424: `yylval' undeclared (first use this function) toke.c: In function scantrans: toke.c:1603: `yylval' undeclared (first use this function) toke.c: In function scanstr: toke.c:1651: `yylval' undeclared (first use this function) Back to yacc again .... Johan -- Johan Vromans jv@mh.nl via internet backbones Multihouse Automatisering bv uucp: ..!{uunet,hp4nl}!mh.nl!jv Doesburgweg 7, 2803 PL Gouda, The Netherlands phone/fax: +31 1820 62944/62500 ------------------------ "Arms are made for hugging" -------------------------