home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / crosscom / p2c / os2 / examples / readme < prev    next >
Encoding:
Text File  |  1992-08-03  |  1.4 KB  |  47 lines

  1.  
  2. This directory contains examples for "p2c", a Pascal to C translator.
  3.  
  4. "p2c"  Copyright 1989, 1990, 1991  Free Software Foundation, Inc.
  5.  
  6. Written and maintained by:   Dave Gillespie
  7.                  256-80 Caltech
  8.                  Pasadena CA 91125
  9.                  daveg@csvax.cs.caltech.edu, cit-vax!daveg
  10.  
  11.  
  12.  
  13.  
  14. Here are some sample programs you can run through p2c.  The Makefile
  15. for this directory knows how to translate and compile all programs.
  16. The "c" subdirectory contains pre-translated files you can compare
  17. with your p2c output. 
  18.  
  19. To translate only:          nmake trans   or just   nmake
  20. To translate and compile:   nmake comp
  21.  
  22. These programs have been culled from various places around the Caltech
  23. C.S. educational lab.  All programs are by Dave Gillespie except as
  24. noted, and are in the HP Pascal dialect.
  25.  
  26.  
  27. fact.p       The obligatory recursive factorial program.  Try this
  28.         one first: "make fact.c" to translate, or "make fact"
  29.         to translate and compile.
  30.  
  31.  
  32. e.p           Program for computing "e" to high precision.
  33.         (Courtesy of Scott Hemphill.)
  34.  
  35.  
  36. self.p       A self-printing program in Pascal.  Try translating,
  37.         running, and diff'ing the output with self.p.
  38.  
  39.  
  40. cref.p       A cross-referencer for Pascal programs.  Enter source
  41.         file name(s), then a blank line, then output file name.
  42.  
  43.  
  44. basic.p       An interpreter for the Basic language, just for kicks!
  45.         See "basic.doc" for documentation.
  46.  
  47.