Quickutilβ

Lisp utilities on demand

Fork me on GitHub
search

There are 1 utilities.

syntax-bind v1.0

Set *readtable* to a copy of readtable-expression and modify the copy. Because cl:load and cl:compile-file bind *readtable*, this effectively gives a file local readtable in the same way cl:in-package gives a file local binding to *package*. Example call:

(syntax-bind *convenient-readtable*  
  (#\# #\@) 'send-line-to-channel  
  #\!       'not-reader) 

Sets #! to a nonterminating macro character. Use (#!) to set it to a terminating macro character. A null readtable-expression creates a readtable with standard Common Lisp syntax then applies the character bindings.

Provides
syntax-bind
Source Code