fset icon indicating copy to clipboard operation
fset copied to clipboard

Support for named-readtables?

Open brianqq opened this issue 10 years ago • 1 comments

It gets pretty hard to use multiple libraries that extend the readtable without using named-readtables. I will be writing up a named-readtable for fset anyway. I can submit a pull request if that is something people would be interested in.

brianqq avatar Dec 15 '15 15:12 brianqq

Here is the necessary code (assuming NAMED-READTABLES is ASDF'd or QL:QUICKLOADed)

(named-readtables:defreadtable syntax
    (:merge nil)
    (:dispatch-macro-char #\# #\{ #'|#{-reader| )
    (:macro-char #\} (get-macro-character #\)) nil )
    (:dispatch-macro-char #\# #\[ #'|#[-reader| )
    (:macro-char #\] (get-macro-character #\)) nil )
    (:dispatch-macro-char #\# #\~ #'|#~-reader| )
    (:dispatch-macro-char #\# #\$ #'|#$-reader| )
    (:dispatch-macro-char #\# #\% #'|#%-reader| ))

ghost avatar Dec 15 '15 16:12 ghost

Added by pfdietz in 6d2f9de.

slburson avatar May 17 '24 02:05 slburson