Common Lisp Package: REASONABLE-UTILITIES.READTABLE

Readtable definition.

README:

FUNCTION

Public

#/-reader

Literal syntax for raw strings (which don't need escapin of control chars). Example: CL-USER> #/This is a "test" string/# "This is a "test" string" ; here " are actually unescaped, but you can't write it in docstring

#`-reader

Literal syntax for zero/one/two argument lambdas. Use % as the function's argument, %% as the second. Examples: - #`(+ 2 %) => (lambda (&optional x y) (+ 2 x)) - #`((1+ %) (print %)) => (lambda (&optional x) (1+ x) (print x)) - #`(+ 1 2) => (lambda (&optional x y) (+ 1 2)) - #`(+ % %%) => (lambda (&optional x y) (+ x y))

#{-reader

Literal syntax for hash-tables. Examples: CL-USER> #{:a 1 :b 2} #<HASH-TABLE :TEST EQL :COUNT 2> holding 2 key/value pairs: ((:a . 1) (:b . 2)) CL-USER> #{equalp "a" 1 "b" 2} #<HASH-TABLE :TEST EQUALP :COUNT 2> holding 2 key/value pairs: (("a" . 1) ...)