Re: Modula-2 grammar sought

Josef Grosch <grosch@gmdka.uucp>
Thu, 28 Feb 91 12:11:04 -0100

          From comp.compilers

Related articles
Modula-2 grammar sought (1991-02-25)
Re: Modula-2 grammar sought grosch@gmdka.uucp (Josef Grosch) (1991-02-28)
Re: Modula-2 grammar sought (1991-03-09)
| List of all articles for this month |

Newsgroups: comp.compilers
From: Josef Grosch <grosch@gmdka.uucp>
Keywords: modula, parse, code
Organization: GMD Forschungsstelle Karlsruhe
Date: Thu, 28 Feb 91 12:11:04 -0100

George Wells ( writes:
> 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.

We have a Modula-to-C translator that may do this job within minutes.
Though it is not PD, it is very cheap. A short description follows.

Josef Grosch

MTC(1) GMD-Forschungsstelle-Karlsruhe MTC(1)

          mtc - Modula-2 to C translator

          Mtc translates Modula-2 programs in readable and therefore
          maintainable K&R C code without major restrictions (even
          nested procedures and modules). The translator is largely
          generated using the GMD compiler construction toolbox. It
          contains semantic analysis as far as needed for the task.
          Semantic analysis is rather complete and comprises scope
          handling, name analysis, and type determination. Context
          conditions are not checked, as it is assumed that only
          correct programs are processed. Mtc translates Modula-2 as
          defined in "N. Wirth: Programming in Modula-2, Third
          Corrected Edition, Springer-Verlag, 1985".

          Coroutines are not implemented yet.
          Comments are lost.

          Modula-2 or C

          SUN 3 oder SUN 4 / SunOS
          DEC Station / ULTRIX
          VAX / ULTRIX oder BSD UNIX 4.2
          PCS Cadmus / MUNIX

          Medium: DC 300 A data cartridge or TK 50 in tar format
          source program in Modula-2 as well as in C
          binary executable for SUN 3

          J. Grosch
          GMD Forschungsstelle an der Universitaet Karlsruhe
          Vincenz-Priesznitz-Str. 1
          D-7500 Karlsruhe 1
          Tel: +721-6622-26
          E-Mail: grosch@gmdka.uucp

          Source licence: 500 DM or 250 US $

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.