-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle special (vprogn) symbols in veq (in example script)
- Loading branch information
1 parent
72df650
commit 247225a
Showing
3 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
(in-package :lqn) | ||
|
||
(let ((q (second (cmd-args))) (pkg (third (cmd-args)))) | ||
(qry (ls "~/common-lisp/*/src/packages.lisp") | ||
(block main | ||
(let ((q (second (cmd-args))) | ||
(pkg (third (cmd-args))) | ||
(veq-symbs (vec! veq::*docstring-map*))) | ||
(labels ((veq-special (s &aux (res (and (equal "VEQ" (package-name (symbol-package s))) | ||
(second (find s veq-symbs :key #'car))))) | ||
(when res (str! "veq:" s " (vprogn)" #\Newline res)))) | ||
(unless q (return-from main)) | ||
(qry (ls "~/common-lisp/*/src/packages.lisp") | ||
dat-read-file _@flatn* second ; package names | ||
[(or (not pkg) (isub? s@_ pkg))] extsym? _@flatn* ; filter packages | ||
[(or (string= s@q "_") (isub? s@_ q))] ; filter symbol ; _ matches all | ||
#((join (head (splt (stdstr _@describe) | ||
#((join (head (splt (or (veq-special _) | ||
(stdstr _@describe)) | ||
#.(str! #\Newline) nil) -1) ; some formatting | ||
#\Newline ";; ") | ||
(out "~&~&██ ~a~&~%" _)))) | ||
(out "~&~&██ ~a~&~%" _)))))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters