An open API service indexing awesome lists of open source software.

https://github.com/hymkor/strict-lsp

strict.lsp - variables checker for CAD's Lisp
https://github.com/hymkor/strict-lsp

autocad autolisp bricscad lisp

Last synced: 24 days ago
JSON representation

strict.lsp - variables checker for CAD's Lisp

Awesome Lists containing this project

README

        

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.
```