home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / BASIC / POWBASIC / LIBRARY4 / RESWOR.ZIP / RESWORD.DOC next >
Text File  |  1990-11-22  |  2KB  |  37 lines

  1.                   " RESWORD "
  2.                SHADETREE SOFTWARE
  3.               Bruce Nopper, Author
  4.              Compuserve  73300,2444
  5.  
  6.   This program is to search Basic ( Turbo 1.xx, Quick 3.xx & 4.xx, Power 2.00x,
  7.   and {Interpreted} GW 3.11 up ) source code for the use of reserved words for
  8.   PowerBasic 2.1 w/PowerPack as variables. This program is slow ( 1 second per
  9.   line ) but very smart, it will ignore Comments, Data and Data Strings. The
  10.   program will work on all variables, numerical and string, including unsigned
  11.   variables, no matter if they are written with Uppercase, Lowercase or mixed.
  12.   This program will detect only exact matches not imbedded matches, eg...
  13.  
  14.   Sample line of code;
  15.  
  16.   Maxamount% = Max% + Max2% : Array$ = "Data used =" + Oldstring$  ' Append it
  17.  
  18.    "Resword" would report that it found the reserved words "Max" and "Array"
  19.    used in this line. It will ignore the word "Append" because it is a comment,
  20.    not code. It ignores Data in "Data used =" because it is used as a Data
  21.    String. The variables Maxamount%, Max2%, and Oldstring$ are ignored because
  22.    they are imbedded and are not true reserved words.
  23.  
  24.    The output of the search can be directed to;  Printer, File (reserved.fnd),
  25.    or Screen. The screen output is paused when the screen is full until a key
  26.    is pressed to continue. The Source code type can be selected from a list,
  27.    each different type of Basic's contains different word lists. The program
  28.    when it finds a reserved word within the code; lists the line number ( this
  29.    is the line number for use with the PowerBasic editor line counter ), the
  30.    reserved word that it found, and displays the line of code in question.
  31.  
  32.    There is no limit to the size of the source code, this program is free for
  33.    personal use only. Please report any bugs or comments to me on Compuserve
  34.    or write to:  Shadetree Software   PO Box 642   N. Amherst, Ma.  01059
  35.  
  36.  
  37.