home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / UPCONV13.ZIP / UPCONV.DOC < prev    next >
Encoding:
Text File  |  1989-04-14  |  2.9 KB  |  63 lines

  1. The file included, UPCONV.COM, is a program published in 'Turbo Pascal
  2. Library' published by Sybex books.  It is a modification of the program
  3. UPCASE.PAS.  This program will convert all the reserved words in a Turbo
  4. Pascal program to uppercase, leaving strings and comments unchanged.  This
  5. version was modified (so the include file was not necessary) by Derron Simon
  6. (GEnie Mail: D.SIMON).  If you find it interesting, I would recommend you
  7. purchase 'Turbo Pascal Library'.  It is full of useful routines.  Have fun!!
  8.  
  9. v1.3, Toad Hall, 14 Apr 89
  10.   - Rewrote for Turbo Pascal v5.0
  11.   - Added a bunch of Turbo Pascal v4.0/v5.0 reserved words.
  12.   - Tightened code a lot.
  13.   - Adding multiple or wildcard capability.
  14.     You can now:
  15.     UPCONV FOO1 FOO2    converts FOO1.PAS and FOO2.PAS
  16.                 to FOO1.FMT and FOO2.FMT respectively
  17.     or    UPCONV *.PAS        converts all .PAS files to .FMT
  18.     or    UPCONV FOO*        converts all FOO*.PAS files to FOO*.FMT
  19.     or  UPCONV *.*        converts ALL files to .FMT (careful!)
  20.     Target files can be anywhere (e.g., you can include a path),
  21.     but the .FMT output will be to current drive:\directory.
  22.     UPCONV will NOT overwrite existing .FMT files (unless you change an IFDEF
  23.     in the source code and recompile).
  24.   - Added an "/L" (or "-l") switch to convert ordinary Pascal (e.g.,
  25.     non-Borland) reserved words to lower case.
  26.     The "/U" (or ("-u") switch still converts ALL reserved words
  27.     to uppercase.
  28.   - Run UPCONV13 with no parameters for help.
  29.   - Adding separate utility (TOK_STR.PAS and TOKEN.INC)
  30.     to produce nicely formatted strings of reserved words
  31.     (so we can easily update this sucker!).
  32.   - Distributing separately from earlier versions
  33.     (e.g., no more Turbo v3.0 or CP/M versions in this archive).
  34.  
  35. v1.2, 12 Oct 88
  36.   - Fixed bugs that (1) would (1) just quit processing and write out as-is,
  37.     and (2) would not leave quoted strings alone.
  38.     (Dumb .. sorry, guys, just didn't test enough.)
  39.  
  40. v1.1, 23 Sep 88
  41.   - Table of reserved words now includes Turbo Pascal MS-DOS v3.0.
  42.   - Tweaked for speed, tightness.
  43.   - Now provides reserve word uppercasing (standard Pascal words)
  44.     and "Borland format" for Turbo Pascal words.
  45.   - No more prompted filename input.  Gives help if incorrect command line.
  46.     Usage:  UPCONV [-[uh?]] file1[.PAS] file2[.FMT] [-[uh?]]
  47.     where:
  48.     input file file1 has default .PAS type
  49.     output file file2 has default .FMT type (program will use input
  50.     file name if no output name provided)
  51.     Switches '-' or '/' are accepted before or after file names:
  52.       U    - force uppercasing of ALL Pascal words (no Borland format).
  53.       ?, h    - display help, quit
  54.  
  55.   Note:  I tweaked this program to replace PFORMAT, another Pascal reformatting
  56.   program.  It has a few more functions than UPCONV does, but its basic
  57.   algorithm for finding and replacing reserved words is a slug (despite my
  58.   most fervent tweaking!).
  59.  
  60.   David Kirschbaum
  61.   Toad Hall
  62.   kirsch@braggvax.ARPA
  63.