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 >
Text File  |  1988-12-27  |  6KB  |  179 lines

  1. ;
  2. ; LispChecKer - Beta Version 1.1b - December 25, 1988
  3. ;
  4. ; CAD/Engineering Services             Stan H. Bimson - 1 Aug 1987
  5. ; Rt2 Box 293 Forest Harbor Drive      Compuserve 73507,3475
  6. ; Hendersonville, TN 37075-9802
  7. ;
  8. ; A program written for running checks on AutoLISP 
  9. ; files to check the balance of parenthesis and double 
  10. ; quotes (string literals). 
  11. ; Files in archived file: 
  12. ;      LCK11B .EXE     Lisp checker 
  13. ;      LCK11B .DOC     This doc file 
  14. ;      ERROR  .LSP     A Lisp program on how to handle error messages 
  15. ;      OSNAP  .LSP     A Lisp program with new OSnap commands
  16. ;      JUNK   .LSP     A Lisp program with errors 
  17. ; Syntax: 
  18. ;      LCK [d:][path]filename[.ext] 
  19. ; The file name extension is ONLY required if the AutoLISP 
  20. ; file does not have the extension of .LSP. 
  21. ; e.g.: 
  22. ;      LCK junk 
  23. ; Syntax: 
  24. ;      LCK 
  25. ; The program will stop and ask for a file name. 
  26. ; PROGRAM NOTES 
  27. ; (1) This program will only work with a color monitor, color 
  28. ; is used to denote levels of parenthesis to aid in debugging 
  29. ; unbalanced parenthesis. 
  30. ; (2) For LCK to know the end of a section of code that is to 
  31. ; be checked: 
  32. ;      (a) place a blank line between the code segments; 
  33.  
  34. ; Is it a string ? (boolean function)
  35. (DeFun TestForStr(st)
  36.   (= (Type st) 'STR)
  37. )
  38.  
  39. ; Is it a List ? (boolean function)
  40. (DeFun TestForLst(Lst)
  41.   (= (Type Lst) 'LIST)
  42. )
  43.  
  44. ;      (b) place a single semicolon between the code segments;
  45.  
  46. ; Is it a string ? (boolean function)
  47. (DeFun TestForStr(st)
  48.   (= (Type st) 'STR)
  49. )
  50. ;
  51. ; Is it a List ? (boolean function)
  52. (DeFun TestForLst(Lst)
  53.   (= (Type Lst) 'LIST)
  54. )
  55.  
  56. ; (3) Code lines up to 255 characters long, lines are rapped without
  57. ; incrementing line numbers 
  58. ;
  59. ; PROGRAM DISPLAY
  60. ;
  61. ; PARENTHESIS - 26 colors are used to denote or display the level of
  62. ; parenthesis.  The left (opening)  parenthesis  and right (closing)
  63. ; parenthesis are counted and the difference of the left minus right
  64. ; is displayed on line 25 of the screen. When the end of a code seg-
  65. ; ment is reached unbalanced parenthesis will be noted or code okay.
  66. ;
  67. ; COMMENTS -  when ever a semicolon is found,  the semicolon and the
  68. ; rest of the line is  considered a comment.  Comments are displayed
  69. ; in the color cyan.
  70. ;
  71. ; STRING LITERALS - when a string quote is found ("),  the quote and
  72. ; all the characters that  follow until another quote is encountered
  73. ; is considered to be a string literal.   String literal have to end
  74. ; on the line that they start on.  String literal  (with quotes) are
  75. ; displayed in the color light gray.  If the program reaches the end
  76. ; of the code line and it has not encountered another quote a string
  77. ; error has occurred,  an error  message is  displayed at the end of
  78. ; the line. When a string or quote error has occurred it will, as it
  79. ; does within AutoCAD,  will unbalance the parenthesis.  Correct the
  80. ; quote error and rerun LCK to complete the code checking.
  81. ;
  82. ; CODE -  is displayed in the color dark green,  all code exceptions
  83. ; have been noted above.
  84. ;
  85. ; ADDITION
  86. ;
  87. ; (0001) - 18 Aug 1987          [ Beta V1.0 ]
  88. ; Syntax:
  89. ;      LCK [d:][path]filename[.ext] [/nc]
  90. ;
  91. ; /NC - no comment display, this covers only the comments that
  92. ;       start within a code line.
  93. ;
  94. ; (0002) - 16 November 1987     [ Beta V1.1 ]
  95. ;      An error was caused by users coding special characters in
  96. ;      strings with '\'  and not  using the  octal code  but the 
  97. ;      character itself, as in "Enter min. 5\" offset" (to display
  98. ;      5" on the screen).
  99. ;
  100. ; (0003) - March 15, 1988       [ Beta V1.1a ]
  101. ;      Program compiled with Turbo Pascal 4.0,  smaller code file
  102. ;      size, runs faster.
  103. ;
  104. ; (0004) - Dec 25, 1988         [ Beta V1.1b ]
  105. ;      An error was caused by using "\\" so AutoLisp would return
  106. ;      the character '\' as in filenames (eg. "C:\\ACAD\\TEXTIN")
  107. ;      instead of using the "/" character.
  108. ;
  109. ;      This Beta version was changed to be included in the release
  110. ;      version 2.0, registered users were notified of the version
  111. ;      2.0 upgrade price of $5.00, new user registration is $7.50.
  112. ;      Release version 2.0 was complied with Turbo Pascal 5.0 with
  113. ;      a result of a small code file and increase in speed.
  114. ;
  115. ; DISCLAIMER
  116. ;
  117. ; We are NOT  responsible for the performance or accuracy of this
  118. ; program. This is as noted a Beta version and you are encouraged
  119. ; to copy and distribute this LCK.ARC provided this documentation
  120. ; file IS NOT REMOVED.
  121. ;
  122. ; HOW TO GET NOTICE OF UPGRADES?
  123. ;
  124. ; (1) Find an error with LCK, document it, send source that makes
  125. ; it happen.
  126. ;
  127. ; (2) Mail a donation  of $5.00 to the above address. This will be
  128. ; appreciated and  will put you on the mailing list.   This is the
  129. ; only version of the program that will be distributed by bulletin
  130. ; board.  Program upgrades will cost $5.00  to $10.00 depending on
  131. ; degree of program changes.
  132. ;
  133. ; CHANGES NOW IN PROGRESS:
  134. ;
  135. ; ( ) [/S]     Scroll screen 23 lines (max) at a time
  136. ;              ADDED TO VERSION 2.0
  137. ;
  138. ; ( ) [/NA]    Remove all comments
  139. ;              ADDED TO VERSION 2.0
  140. ;
  141. ; (A) [/L]     Display levels of parenthesis offset on a new line.
  142. ;              SINCE VERSION 2.0
  143. ;
  144. ; (B) [/P]     Make a listing file similar to the screen display.
  145. ;              SINCE VERSION 2.0
  146. ;
  147. ; (C) [/D]     Dynamic scroll, up, down, right and left (no
  148. ;              wrapped lines).
  149. ;              SINCE VERSION 2.0
  150. ;
  151. ; COMMENTS TO US
  152. ;
  153. ; I also would be pleased to hear any  comments on this program be
  154. ; they bad or good, I am not a professional programmer but a free-
  155. ; lance  structural  steel draftsman  that uses AutoCAD, I program
  156. ; heavily  in AutoLISP and  as you see by  this  program in  Turbo
  157. ; Pascal.  I feel  that this  program is  a very  good aid for the
  158. ; AutoLISP programmer and would appreciate any and all suggestions.
  159. ; Comments or  suggestions don't require donations nor do they get
  160. ; you on the  mailing  list.  Really good ones might get listed in
  161. ; the documentation file.
  162. ;
  163. ; THANKS TO
  164. ;
  165. ; AUTODESK for AutoCAD & AutoLISP
  166. ; BORLAND for Turbo Pascal 4.0
  167. ; PKWARE  for PKARC and PKXARC 
  168. ;
  169. ;      [shb]
  170.  
  171.