src/readtable.lisp @ bad26979f2d4

Add destructuring
author Steve Losh <steve@stevelosh.com>
date Thu, 12 Jan 2017 11:14:27 +0000
parents f31f114d1e79
children ddcf7ddf78f6
(in-package :chancery)

(defun vector-reader (stream char)
  (declare (ignore char))
  (coerce (read-delimited-list #\] stream t) 'vector))


(named-readtables:defreadtable :chancery
  (:merge :standard)
  (:macro-char #\[ #'vector-reader t)
  (:macro-char #\] (get-macro-character #\) nil)))