Mail Archives: djgpp/1996/04/22/16:09:43
Errors-To: postmaster AT ns1
X-Sender: actainc AT cerf DOT net (Unverified)
X-Mailer: Windows Eudora Pro Version 2.1.2
Mime-Version: 1.0
Date: Mon, 22 Apr 1996 09:05:57 -0700
From: ACTA Inc <actainc AT CERF DOT NET>
Cc: pjbk AT cee DOT hw DOT ac DOT uk DOT ceedwlt@cee.hw.ac.uk, bill_currie AT MAIL DOT TAIT DOT CO DOT NZ,
eheft AT dnaco DOT net DOT rsevilla@upd.edu.ph, broeker AT physik DOT rwth-aachen DOT de,
kagel AT dg1, austin AT isr DOT umd DOT edu
Content-Type: text/plain; charset="us-ascii"
Content-Length: 1374
Hi,
Thank you for your replay to my previous query about the YACC
"feature" in DJGPP.
Almost every one suggested BISON.
So I tried BISON. But I still have difficulties to compile my
program with Bison.
According to the O'Reily' s book on YACC and LEX, bison produce a
filename.tab.c file unlike YACC which produces a
y.tab.c file. I noticed that in DJGPP 2.0, the bison generates a file
filename_tab.c after I run bison -y -d filename.y.
For my particular case, my YACC file name is grammar.y, and the
bison in DJGPP 2.0 produce a file called "grammar_.c" if I just type "bison
-y -d grammar.y ". There is no any error message.
Yet if I directly use makefile, I noticed that bison generates a
y_tab.c and y_tab.h, and the make process determined with
an error of " ***[grammar.y] error -1" at line "mv -f y_tab.c grammar.c"
What I have done wrong ?
No you just appear to not have a copy of the UNIX mv utility to move/rename a
file.
The differences between my unix version and DJGPP version are the
file names, which appears in both makefile and
the ".c" files due to the change of the name of header files.
--
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com
A proverb is no proverb to you 'till life has illustrated it. -- John Keats
- Raw text -