|Re: Modula-2 grammar sought (Summary) firstname.lastname@example.org (1991-03-04)|
|From:||email@example.com (George Wells)|
|Keywords:||modula, parse, yacc, C, translator|
|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
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 firstname.lastname@example.org.
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:
email@example.com (Clarence Wilkerson)
m2xenix!sequent.com!pasqnt!jfk (Jim Kerrigan)
firstname.lastname@example.org (Raymond Chen)
Chris Siebenmann <email@example.com>
Piet van Oostrum <firstname.lastname@example.org>
Troy Zerr <email@example.com> 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
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 firstname.lastname@example.org
Again thanks to all who replied.
Return to the
Search the comp.compilers archives again.