Skip to content

Commit

Permalink
Add scratch marker reader macro
Browse files Browse the repository at this point in the history
  • Loading branch information
iamFIREcracker committed Jan 12, 2024
1 parent 84e30fb commit d57a152
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions syntax.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@
(set-macro-character #\] (get-macro-character #.(char ")" 0))))

#+#:excluded (read (make-string-input-stream "[format t \"Hello, ~a!\" _]"))

(eval-when (:compile-toplevel :load-toplevel :execute)
(defun sharp-semicolon-reader (stream sub-char numarg)
(declare (ignore sub-char numarg))
(loop :while (read-line stream nil nil))
(values))
(set-dispatch-macro-character #\# #\; #'sharp-semicolon-reader))

0 comments on commit d57a152

Please sign in to comment.