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
- Host: GitHub
- URL: https://github.com/hymkor/strict-lsp
- Owner: hymkor
- Created: 2018-06-01T10:43:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T07:08:42.000Z (almost 7 years ago)
- Last Synced: 2025-02-10T15:50:56.367Z (3 months ago)
- Topics: autocad, autolisp, bricscad, lisp
- Language: Common Lisp
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.
```