about summary refs log tree commit diff stats
path: root/shell/print.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-08 22:37:05 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-08 23:04:30 -0700
commitc3069ab81868ed4ff3615923fc62dd894d671c8b (patch)
tree863a92e869628dae2a540b19ee8f3da5bba8f13e /shell/print.mu
parentd6d28b8c94b2611407a711899c05eeba86e0be80 (diff)
downloadmu-c3069ab81868ed4ff3615923fc62dd894d671c8b.tar.gz
shell: start rendering globals
Diffstat (limited to 'shell/print.mu')
-rw-r--r--shell/print.mu7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/print.mu b/shell/print.mu
index aab6cbfe..3dec6cff 100644
--- a/shell/print.mu
+++ b/shell/print.mu
@@ -40,6 +40,13 @@ fn print-cell _in: (addr handle cell), out: (addr stream byte), trace: (addr tra
     trace-higher trace
     return
   }
+  compare *in-type, 4/primitive
+  {
+    break-if-!=
+    write out, "[primitive]"
+    trace-higher trace
+    return
+  }
 }
 
 # debug helper