Guest User

Untitled

a guest
Jun 25th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. ;Define new syntax so we can write something like
  2. ; [1 2 3 4 5 6]
  3. ;instead of
  4. ; '(1 2 3 4 5 6)
  5.  
  6. (defun open-bracket-macro-character (stream char)
  7. `',(read-delimited-list #\] stream t))
  8. (set-macro-character #\[ #'open-bracket-macro-character)
  9. (set-macro-character #\] (get-macro-character #\)))
Add Comment
Please, Sign In to add comment