about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-05 20:50:06 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-05 20:50:06 -0700
commit6d67e1bf14e2ad7a22de84573fa3cdba86902bb7 (patch)
treec8ce7f324d3d3925e66f23a5340fd3a388eb2fdf
parent0b3d456f2cba50b14664f268c100d643f3119690 (diff)
downloadmu-6d67e1bf14e2ad7a22de84573fa3cdba86902bb7.tar.gz
.
-rw-r--r--shell/parse.mu10
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/parse.mu b/shell/parse.mu
index f59c5488..54cb650a 100644
--- a/shell/parse.mu
+++ b/shell/parse.mu
@@ -220,6 +220,11 @@ fn parse-atom _curr-token: (addr cell), _out: (addr handle cell), trace: (addr t
     var dest/edi: (addr float) <- get out-addr, number-data
     copy-to *dest, val-float
     {
+      {
+        var should-trace?/eax: boolean <- should-trace? trace
+        compare should-trace?, 0/false
+      }
+      break-if-=
       var stream-storage: (stream byte 0x400)
       var stream/ecx: (addr stream byte) <- address stream-storage
       write stream, "=> number "
@@ -251,6 +256,11 @@ fn parse-atom _curr-token: (addr cell), _out: (addr handle cell), trace: (addr t
   var dest-ah/edx: (addr handle stream byte) <- get out-addr, text-data
   copy-object curr-token-data-ah, dest-ah
   {
+    {
+      var should-trace?/eax: boolean <- should-trace? trace
+      compare should-trace?, 0/false
+    }
+    break-if-=
     var stream-storage: (stream byte 0x400)
     var stream/ecx: (addr stream byte) <- address stream-storage
     write stream, "=> symbol "