Skip to content

strict.lsp - variables checker for CAD's Lisp

Notifications You must be signed in to change notification settings

hymkor/strict-lsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

strict.lsp

In the commandline of AutoCAD or BricsCAD:

Put strict.lsp on CAD's search-path and type as below.

(load "strict")
(strict "SCRIPT.LSP")

and it shows

  • unused variables whose declarations exist in (defun)
  • used vairables without declaration in (defun)

about SCRIPT.LSP.

  • (let) is not supported because autolisp does not have it.

For example

example-warning.lsp

(defun hoge (/ foo)
  (setq bar 1)
)

do on the commandline of CAD:

: (strict "example-warning")

HOGE: BAR has no declarations.
HOGE: FOO is unused.

About

strict.lsp - variables checker for CAD's Lisp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published