Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the null-package Reference Manual, version 1.4.3, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 05:28:43 2022 GMT+0.
Next: Systems, Previous: The null-package Reference Manual, Up: The null-package Reference Manual [Contents][Index]
Safe and robust S-Expression reader. Useful to read from unfailthfull stream/socket.
| | safe-read | eclector | null-package | | --- | ----------- | ----------- | ------------ | | NIL | * | * | * | | () | ERROR | * | * | | Read macro | ERROR | * | * | | Prefixed symbol | ERROR | Can recover | Can control | | Backquote | ERROR | Its own | Impl own |
NULL-PACKAGE aims to be used for static analyzing rather than security. If you want more strict one for security reason, SAFE-READ is recommended.
(with-input-from-string (s "hoge")
(read-with-null-package s))
=> #:HOGE
For details, see spec file.
If NIL
(the default), every symbols are uninterned.
If T
, only broken symbols are uninterned.
(let ((*only-junk-p* t))
(with-input-from-string (s "(car (cdr (list a b no-such-package:c)))")
(read-with-null-package s)))
=> (CAR (CDR (LIST A B #:C)))
If *ONLY-JUNK-P*
is the list of package designators,
the symbol satisfies *TARGET-SYMBOLS*
are only interned.
(defpackage test (:use :cl) (:export car cdr))
(let ((*terget-symbols* :external) ; The default though.
(*only-junk-p* '(:test)))
(with-input-from-string (s "(car (cdr (list a b no-such-package:c)))")
(read-with-null-package s)))
=> (CAR (CDR (#:LIST #:A #:B #:C)))
In fact, ideal syntax was like below.
(let ((*package* (find-package :null)))
(with-input-from-string (s "hoge")
(read s)))
But there is no portable way to set default reader to readtable.
Already?
MIT
SBCL
Next: Files, Previous: Introduction, Up: The null-package Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
Safe and robust S-Expression reader. Useful to read from unfailthfull stream/socket.
SATO Shinichi
(GIT git@github.com:hyotang666/null-package)
MIT
1.4.3
null-package.lisp (file).
Next: Packages, Previous: Systems, Up: The null-package Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: null-package/null-package.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
null-package (system).
Previous: null-package/null-package.asd, Up: Lisp [Contents][Index]
null-package (system).
Next: Definitions, Previous: Files, Up: The null-package Reference Manual [Contents][Index]
Packages are listed by definition order.
common-lisp.
Next: Indexes, Previous: Packages, Up: The null-package Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Public Interface, Up: Public Interface [Contents][Index]
When NIL, all symbols are uninterned except boolean and keyword.
When list, included package’s symbols which satisfies TARGETP are not uninterned.
When T, broken notation only uninterned.
Previous: Special variables, Up: Public Interface [Contents][Index]
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Special variables, Up: Internals [Contents][Index]
Like DOLIST but for STRING. Escaped chars are ignored.
Previous: Definitions, Up: The null-package Reference Manual [Contents][Index]
Jump to: | #
'
,
`
A C D F M N P R S T |
---|
Jump to: | #
'
,
`
A C D F M N P R S T |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | F N P S |
---|
Jump to: | F N P S |
---|