Add unparser for variable items.
authorChris Hanson <org/chris-hanson/cph>
Sun, 21 Jan 2018 21:27:16 +0000 (13:27 -0800)
committerChris Hanson <org/chris-hanson/cph>
Sun, 21 Jan 2018 21:52:56 +0000 (13:52 -0800)
src/runtime/syntax-items.scm

index b23c904031e3be3b20ebdb8ed0a221684f84fb19..83b9ff7b519c036a46ab5b5ffc1be1eaaf4b293b 100644 (file)
@@ -75,6 +75,11 @@ USA.
     (make-variable-item name)
     variable-item?
   (name variable-item/name))
+
+(define-unparser-method variable-item?
+  (simple-unparser-method 'variable-item?
+    (lambda (item)
+      (list (variable-item/name item)))))
 \f
 ;;; Expression items represent any kind of expression other than a
 ;;; run-time variable or a sequence.