home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / cpm68k / utils.lbr / PTOC.MQN / PTOC.MAN
Text File  |  1986-05-22  |  1KB  |  44 lines

  1. -*-fill,indent:0,fillw:70-*-
  2.  
  3.           PTOC - A Pascal to C partial translator
  4.           =======================================
  5.  
  6.  
  7.                     by
  8.                    Robert Heller
  9.  
  10.     Synopis:
  11.     PTOC <sourcefile >outputfile
  12.  
  13.     PTOC is a program for doing a partial translation of a Pascal
  14. module into a C module.  The sourcefile is a Pascal source file.  The
  15. outputfile is the partial translation.  PTOC does the following
  16. translations:
  17.  
  18.     Pascal (sourcefile)        C (outputfile)
  19.     -------------------        --------------
  20.  
  21.     AND                &&
  22.     OR                ||
  23.     THEN                        (null string)
  24.     BEGIN                {
  25.     END                ;}
  26.     WRITE                printf
  27.     WRITELN                printf
  28.     READ                scanf
  29.     READLN                scanf
  30.     (*                /*
  31.     {                /*
  32.     *)                */
  33.     }                */
  34.     '                "
  35.     :=                =
  36.     =                ==
  37.     <>                !=
  38.  
  39. The input words are case folded - that is they are matched in a case
  40. independent fashion.  The resulting output file still needs editing to
  41. complete the translation - PTOC just does the common and obvious
  42. translations.     ==
  43.     <>                !=
  44.