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