Skip to content

Commit

Permalink
Late initialize quasiquote
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed May 18, 2023
1 parent 3e6c1ac commit b06a92e
Showing 1 changed file with 3 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,31 +123,6 @@

(in-package :sys)

(defun pprint-quote (stream list &rest noise)
(declare (ignore noise))
(if (and (consp list)
(consp (cdr list))
(null (cddr list)))
(case (car list)
(function
(write-string "#'" stream)
(write-object (cadr list) stream))
(quote
(write-char #\' stream)
(write-object (cadr list) stream))
(eclector.reader:quasiquote
(write-char #\` stream)
(write-object (cadr list) stream))
(eclector.reader:unquote
(write-char #\, stream)
(write-object (cadr list) stream))
(eclector.reader:unquote-splicing
(write-string ",@" stream)
(write-object (cadr list) stream))
(t
(pprint-fill stream list)))
(pprint-fill stream list)))

(defmethod print-object ((l cons) stream)
(if (cdr l)
(case (first l)
Expand All @@ -166,4 +141,6 @@

(setf inravina-intrinsic::*initial-pprint-dispatch* (inravina:copy-pprint-dispatch inravina-intrinsic:*client* nil t)
inravina-intrinsic::*standard-pprint-dispatch* (inravina:copy-pprint-dispatch inravina-intrinsic:*client* nil t)
*print-pprint-dispatch* (inravina:copy-pprint-dispatch inravina-intrinsic:*client* t))
*print-pprint-dispatch* (inravina:copy-pprint-dispatch inravina-intrinsic:*client* nil))

(inravina::find-unquote-symbols)

0 comments on commit b06a92e

Please sign in to comment.