Related articles |
---|
Re: Modula-2 grammar sought (Summary) csgw@alpha.cs.ru.ac.za (1991-03-04) |
Newsgroups: | comp.compilers |
From: | csgw@alpha.cs.ru.ac.za (George Wells) |
Keywords: | modula, parse, yacc, C, translator |
Organization: | Compilers Central |
References: | <9102251428.AA12863@alpha.cs.ru.ac.za> |
Date: | Mon, 4 Mar 91 15:20:58 MET |
Thanks to all who replied following my request for Modula-2 to
C translators, or Modula-2 grammars.
> I've been given the task of porting fairly large quantities of
> Modula-2 code to C. If I am unsuccessful in finding a PD
> translator for this purpose I am probably going to have to
> work one up myself.
The following reply (from Carl Witty <cwitty@cs.Stanford.EDU>) is
typical:
Dave Gillespie's p2c Pascal to C translator has a Modula-2 mode. It
doesn't quite handle all of Modula-2's features, but it may be enough
for you. It's available by anonymous ftp to csvax.cs.caltech.edu; the
author is daveg@csvax.cs.caltech.edu.
Several people also suggested looking at the Modula-3 compiler available
on the net. There were no Modula-2 grammars forthcoming.
Others who replied were:
wilker@gauss.math.purdue.edu (Clarence Wilkerson)
m2xenix!sequent.com!pasqnt!jfk (Jim Kerrigan)
raymond@math.berkeley.edu (Raymond Chen)
Pat.Terry@f4.n494.z5.fidonet.org
Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>
Piet van Oostrum <piet@cs.ruu.nl>
Troy Zerr <zerr@math.wisc.edu> wrote:
Writing a reliable translator from Modula-2 to C is not particularly
easy. Doing the translation by hand would almost certainly be quicker
than writing a robust translator, and would probably be quicker than
writing an unreliable translator and then manually fixing up the
translated code.
However, if you are interested, someone wrote a master's thesis
on a Modula-2 to C translator. Hang on a sec ...
The thesis was written by Matthias Martin at Karlsruhe, Germany.
The thesis is titled
"Entwurf und Implementierung eines Ubersetzers von Modula-2 nach C"
and as the title would suggest, the thesis is in German.
Frode Odegard (frode@DCI2FD.DAS.NET) wrote:
There's a German company with a Modula-2 --> C translator. Call
Real Time Associates - (81) 656 7333. They're GOOD guys and won't sell
anything untested. Ask for Dave Fox, tell him Frode Odegard sent ya.
What a *sad* task, sir. :-)
....- Frode Odegard, Veda Technologies
PS: reply to frode@toaster.sfsu.edu
Again thanks to all who replied.
George Wells.
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.