www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/22/16:09:43

From: kagel AT quasar DOT bloomberg DOT com
Date: Mon, 22 Apr 1996 15:34:16 -0400
Message-Id: <9604221934.AA01365@quasar.bloomberg.com >
To: actainc AT CERF DOT NET
Cc: djgpp AT delorie DOT com, 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, austin AT isr DOT umd DOT edu
In-Reply-To: <199604221605.JAA01502@nic.cerf.net> (message from ACTA Inc on Mon, 22 Apr 1996 09:05:57 -0700)
Subject: Re: YACC and BISON in DJGPP 2.0
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019