home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / net / pascal2c.2 < prev    next >
Internet Message Format  |  1987-01-27  |  1KB

  1. From HELLER%cs.umass.edu@relay.cs.net Tue Jan 27 01:56:18 1987
  2. Path: beno!seismo!ut-sally!husc6!mit-eddie!rutgers!brl-adm!adm!HELLER%cs.umass.edu@relay.cs.net
  3. From: HELLER%cs.umass.edu@relay.cs.net (Stride 440 User)
  4. Newsgroups: net.sources
  5. Subject: ptoc.man
  6. Message-ID: <3821@brl-adm.ARPA>
  7. Date: 27 Jan 87 06:56:18 GMT
  8. Sender: news@brl-adm.ARPA
  9. Lines: 42
  10.  
  11. -*-fill,indent:0,fillw:70-*-
  12.  
  13.           PTOC - A Pascal to C partial translator
  14.           =======================================
  15.  
  16.  
  17.                     by
  18.                    Robert Heller
  19.  
  20.     Synopis:
  21.     PTOC <sourcefile >outputfile
  22.  
  23.     PTOC is a program for doing a partial translation of a Pascal
  24. module into a C module.  The sourcefile is a Pascal source file.  The
  25. outputfile is the partial translation.  PTOC does the following
  26. translations:
  27.  
  28.     Pascal (sourcefile)        C (outputfile)
  29.     -------------------        --------------
  30.  
  31.     AND                &&
  32.     OR                ||
  33.     THEN                        (null string)
  34.     BEGIN                {
  35.     END                ;}
  36.     WRITE                printf
  37.     WRITELN                printf
  38.     READ                scanf
  39.     READLN                scanf
  40.     (*                /*
  41.     {                /*
  42.     *)                */
  43.     }                */
  44.     '                "
  45.     :=                =
  46.     =                ==
  47.     <>                !=
  48.  
  49. The input words are case folded - that is they are matched in a case
  50. independent fashion.  The resulting output file still needs editing to
  51. complete the translation - PTOC just does the common and obvious
  52. translations.
  53.  
  54.  
  55.