home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / modula2 / 1646 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.5 KB

  1. 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
  2. From: Sean.Wilson@f590.n139.z1.fidonet.org (Sean Wilson)
  3. Sender: ufgate@puddle.fidonet.org (newsout1.26)
  4. Newsgroups: comp.lang.modula2
  5. Subject: C to Modula2 converter?
  6. Message-ID: <36834.2B518BA8@puddle.fidonet.org>
  7. Date: Thu, 07 Jan 93 11:36:18 PDT
  8. Organization: FidoNet node 1:139/590 - PMI BBS, Green Bay WI
  9. Lines: 26
  10.  
  11. PG>   Recently someone asked about a Modula2 to C converter. I would
  12. PG>   be interested in a program that converts C to Modula2. Does such
  13. PG>   a program exist? I believe it is very difficult to translate C code
  14. PG>   to Modula2 because of the (cryptic) notational possibilities of C.
  15. PG>   Any info would be appreciated.
  16.  
  17. One of the main difficulties is that C is like 2 languages in one. The
  18. macro preprocessor is one language, and it affects the program text seen by
  19. the C compiler.  Unfortunately many C programs depend heavily on using the
  20. macro preprocessor to produce different code under different circumstances
  21. so there is often no direct equivalence between C code and Modula-2 code.
  22.  
  23. We thought about writing one once but decided that it would probably
  24. create more unhappy people than it would please.
  25.  
  26. Best Regards
  27.      Sean Wilson
  28.      (TopSpeed Technical Support)
  29.  
  30. ___
  31.  X PQ-Under-Trial 2.15 X Surge into electronic mail.
  32.  
  33.  
  34. --  
  35. uucp: uunet!m2xenix!puddle!139!590!Sean.Wilson
  36. Internet: Sean.Wilson@f590.n139.z1.fidonet.org
  37.