Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!hsdndev!spdcc!iecc!compilers-sender From: grosch@gmdka.uucp (Josef Grosch) Newsgroups: comp.compilers Subject: Re: Modula-2 grammar sought Keywords: modula, parse, code Message-ID: <9102281111.AA12139@gmdka.uucp> Date: 28 Feb 91 13:11:04 GMT Sender: compilers-sender@iecc.cambridge.ma.us Reply-To: Josef Grosch Organization: GMD Forschungsstelle Karlsruhe Lines: 64 Approved: compilers@iecc.cambridge.ma.us George Wells (csgw@alpha.cs.ru.ac.za) 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) NAME mtc - Modula-2 to C translator DESCRIPTION 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". RESTRICTIONS Coroutines are not implemented yet. Comments are lost. IMPLEMENTATION-LANGUAGES Modula-2 or C TARGET-PLATFORMS SUN 3 oder SUN 4 / SunOS DEC Station / ULTRIX VAX / ULTRIX oder BSD UNIX 4.2 PCS Cadmus / MUNIX others DISTRIBUTION 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 CONTACT 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 PRICE Source licence: 500 DM or 250 US $ -- Send compilers articles to compilers@iecc.cambridge.ma.us or {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.