Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!ihnp4!homxb!mtuxo!mtune!westmark!dave From: dave@westmark.UUCP (Dave Levenson) Newsgroups: comp.sys.ibm.pc,comp.unix.questions,comp.unix.wizards Subject: Re: Porting output of Yacc and Lax to the IBbuM Message-ID: <207@westmark.UUCP> Date: Sun, 11-Oct-87 19:37:50 EDT Article-I.D.: westmark.207 Posted: Sun Oct 11 19:37:50 1987 Date-Received: Tue, 13-Oct-87 00:59:16 EDT References: <468@aoa.UUCP> Organization: Westmark, Inc., Warren, NJ, USA Lines: 30 Keywords: yacc lax ibm pc Xref: mnetor comp.sys.ibm.pc:8956 comp.unix.questions:4498 comp.unix.wizards:4837 In article <468@aoa.UUCP>, rob@aoa.UUCP (Rob Everton) writes: > Seeking comments on the process of developing a small language > compiler system for the ibm pc family using Yacc and Lax > from a different machine, probably 3b1 unix pc's or something. > > Has anyone tried this? Yes, I have ported the cdecl utility (it translates between c declaration syntax and English) to MS-DOS from UNIX by doing exactly what you are asking about! I ran the lex and yacc portions of the make procedure under UNIX, and then compiled the resulting C code, along with the rest of cdecl, using the Microsoft C (rel 4.0) under MS-DOS 3.2. The result is that the utility runs under MS-DOS as it does under UNIX. I'm now hacking up the lex and yacc sources to understand the far and near extensions, so that it will be more useful to MS-C developers. The development system here is ideal for the task: an AT&T PC6300PLUS running Simul-Task. It allows me to run MS-DOS applications from within UNIX programs. What I use to make cdecl.exe is a single UNIX Makefile that runs lex and yacc as usual, and then runs cl as a dos command! The same makefile can be used to make cdecl (the unix executable) and cdecl.exe. It invokes cc to make the unix flavor, and cl to make the dos flavor. -- Dave Levenson Westmark, Inc. A node for news. Warren, NJ USA {rutgers | clyde | mtune | ihnp4}!westmark!dave