home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
GR
/
GR506.ZIP
/
ACAD2.EXE
/
LCK11B.DOC
< prev
next >
Wrap
Text File
|
1988-12-27
|
6KB
|
179 lines
;
; LispChecKer - Beta Version 1.1b - December 25, 1988
;
; CAD/Engineering Services Stan H. Bimson - 1 Aug 1987
; Rt2 Box 293 Forest Harbor Drive Compuserve 73507,3475
; Hendersonville, TN 37075-9802
;
; A program written for running checks on AutoLISP
; files to check the balance of parenthesis and double
; quotes (string literals).
;
; Files in archived file:
; LCK11B .EXE Lisp checker
; LCK11B .DOC This doc file
; ERROR .LSP A Lisp program on how to handle error messages
; OSNAP .LSP A Lisp program with new OSnap commands
; JUNK .LSP A Lisp program with errors
;
; Syntax:
; LCK [d:][path]filename[.ext]
;
; The file name extension is ONLY required if the AutoLISP
; file does not have the extension of .LSP.
; e.g.:
; LCK junk
;
; Syntax:
; LCK
;
; The program will stop and ask for a file name.
;
; PROGRAM NOTES
;
; (1) This program will only work with a color monitor, color
; is used to denote levels of parenthesis to aid in debugging
; unbalanced parenthesis.
;
; (2) For LCK to know the end of a section of code that is to
; be checked:
; (a) place a blank line between the code segments;
; Is it a string ? (boolean function)
(DeFun TestForStr(st)
(= (Type st) 'STR)
)
; Is it a List ? (boolean function)
(DeFun TestForLst(Lst)
(= (Type Lst) 'LIST)
)
; (b) place a single semicolon between the code segments;
; Is it a string ? (boolean function)
(DeFun TestForStr(st)
(= (Type st) 'STR)
)
;
; Is it a List ? (boolean function)
(DeFun TestForLst(Lst)
(= (Type Lst) 'LIST)
)
; (3) Code lines up to 255 characters long, lines are rapped without
; incrementing line numbers
;
; PROGRAM DISPLAY
;
; PARENTHESIS - 26 colors are used to denote or display the level of
; parenthesis. The left (opening) parenthesis and right (closing)
; parenthesis are counted and the difference of the left minus right
; is displayed on line 25 of the screen. When the end of a code seg-
; ment is reached unbalanced parenthesis will be noted or code okay.
;
; COMMENTS - when ever a semicolon is found, the semicolon and the
; rest of the line is considered a comment. Comments are displayed
; in the color cyan.
;
; STRING LITERALS - when a string quote is found ("), the quote and
; all the characters that follow until another quote is encountered
; is considered to be a string literal. String literal have to end
; on the line that they start on. String literal (with quotes) are
; displayed in the color light gray. If the program reaches the end
; of the code line and it has not encountered another quote a string
; error has occurred, an error message is displayed at the end of
; the line. When a string or quote error has occurred it will, as it
; does within AutoCAD, will unbalance the parenthesis. Correct the
; quote error and rerun LCK to complete the code checking.
;
; CODE - is displayed in the color dark green, all code exceptions
; have been noted above.
;
; ADDITION
;
; (0001) - 18 Aug 1987 [ Beta V1.0 ]
; Syntax:
; LCK [d:][path]filename[.ext] [/nc]
;
; /NC - no comment display, this covers only the comments that
; start within a code line.
;
; (0002) - 16 November 1987 [ Beta V1.1 ]
; An error was caused by users coding special characters in
; strings with '\' and not using the octal code but the
; character itself, as in "Enter min. 5\" offset" (to display
; 5" on the screen).
;
; (0003) - March 15, 1988 [ Beta V1.1a ]
; Program compiled with Turbo Pascal 4.0, smaller code file
; size, runs faster.
;
; (0004) - Dec 25, 1988 [ Beta V1.1b ]
; An error was caused by using "\\" so AutoLisp would return
; the character '\' as in filenames (eg. "C:\\ACAD\\TEXTIN")
; instead of using the "/" character.
;
; This Beta version was changed to be included in the release
; version 2.0, registered users were notified of the version
; 2.0 upgrade price of $5.00, new user registration is $7.50.
; Release version 2.0 was complied with Turbo Pascal 5.0 with
; a result of a small code file and increase in speed.
;
; DISCLAIMER
;
; We are NOT responsible for the performance or accuracy of this
; program. This is as noted a Beta version and you are encouraged
; to copy and distribute this LCK.ARC provided this documentation
; file IS NOT REMOVED.
;
; HOW TO GET NOTICE OF UPGRADES?
;
; (1) Find an error with LCK, document it, send source that makes
; it happen.
;
; (2) Mail a donation of $5.00 to the above address. This will be
; appreciated and will put you on the mailing list. This is the
; only version of the program that will be distributed by bulletin
; board. Program upgrades will cost $5.00 to $10.00 depending on
; degree of program changes.
;
; CHANGES NOW IN PROGRESS:
;
; ( ) [/S] Scroll screen 23 lines (max) at a time
; ADDED TO VERSION 2.0
;
; ( ) [/NA] Remove all comments
; ADDED TO VERSION 2.0
;
; (A) [/L] Display levels of parenthesis offset on a new line.
; SINCE VERSION 2.0
;
; (B) [/P] Make a listing file similar to the screen display.
; SINCE VERSION 2.0
;
; (C) [/D] Dynamic scroll, up, down, right and left (no
; wrapped lines).
; SINCE VERSION 2.0
;
; COMMENTS TO US
;
; I also would be pleased to hear any comments on this program be
; they bad or good, I am not a professional programmer but a free-
; lance structural steel draftsman that uses AutoCAD, I program
; heavily in AutoLISP and as you see by this program in Turbo
; Pascal. I feel that this program is a very good aid for the
; AutoLISP programmer and would appreciate any and all suggestions.
; Comments or suggestions don't require donations nor do they get
; you on the mailing list. Really good ones might get listed in
; the documentation file.
;
; THANKS TO
;
; AUTODESK for AutoCAD & AutoLISP
; BORLAND for Turbo Pascal 4.0
; PKWARE for PKARC and PKXARC
;
; [shb]