home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!batcomputer!cornell!uw-beaver!news.tek.com!psgrain!m2xenix!puddle!f590.n139.z1.fidonet.org!Sean.Wilson
- From: Sean.Wilson@f590.n139.z1.fidonet.org (Sean Wilson)
- Sender: ufgate@puddle.fidonet.org (newsout1.26)
- Newsgroups: comp.lang.modula2
- Subject: C to Modula2 converter?
- Message-ID: <36834.2B518BA8@puddle.fidonet.org>
- Date: Thu, 07 Jan 93 11:36:18 PDT
- Organization: FidoNet node 1:139/590 - PMI BBS, Green Bay WI
- Lines: 26
-
- PG> Recently someone asked about a Modula2 to C converter. I would
- PG> be interested in a program that converts C to Modula2. Does such
- PG> a program exist? I believe it is very difficult to translate C code
- PG> to Modula2 because of the (cryptic) notational possibilities of C.
- PG> Any info would be appreciated.
-
- One of the main difficulties is that C is like 2 languages in one. The
- macro preprocessor is one language, and it affects the program text seen by
- the C compiler. Unfortunately many C programs depend heavily on using the
- macro preprocessor to produce different code under different circumstances
- so there is often no direct equivalence between C code and Modula-2 code.
-
- We thought about writing one once but decided that it would probably
- create more unhappy people than it would please.
-
- Best Regards
- Sean Wilson
- (TopSpeed Technical Support)
-
- ___
- X PQ-Under-Trial 2.15 X Surge into electronic mail.
-
-
- --
- uucp: uunet!m2xenix!puddle!139!590!Sean.Wilson
- Internet: Sean.Wilson@f590.n139.z1.fidonet.org
-