about summary refs log tree commit diff stats
path: root/078table.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-09-19 14:57:55 -0700
committerKartik Agaram <vc@akkartik.com>2019-09-19 15:12:50 -0700
commita9d473e22426a7636980b8266e9b48cbae3bba05 (patch)
tree9428315eb5570c68c3bc3aff2623a0a8a943eb49 /078table.subx
parent37d40d4096b5ef6f256efc2b90ea4c75883d6f59 (diff)
downloadmu-a9d473e22426a7636980b8266e9b48cbae3bba05.tar.gz
5668 - start reorg to permit syntax sugar in layers
Right now we always build the library before any apps.
Apps are where our syntax sugar translators (sigils, calls, braces) live.
So we can't use sugar in the standard library.

New idea: move all code for SubX phases into the top-level.
Perhaps we should also just build a single file rather than pipeline stages.
But for now we'll build each phase by building up to some specific layer.

This will simplify test_apps and move lots of one-off logic to a more standard
form in test_layers.

I'm also going to reorg existing layers so that we introduce each phase
at a point where it mostly only gets the helpers it needs.

This commit itself is just cleaning up some common strings. Using explicit
names for them streamlines binaries a bit.
Diffstat (limited to '078table.subx')
-rw-r--r--078table.subx8
1 files changed, 4 insertions, 4 deletions
diff --git a/078table.subx b/078table.subx
index 95dd6150..602cd872 100644
--- a/078table.subx
+++ b/078table.subx
@@ -107,7 +107,7 @@ $get:abort:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . _write(2/stderr, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     68/push  2/imm32/stderr
     # . . call
     e8/call  _write/disp32
@@ -288,7 +288,7 @@ $get-slice:abort:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
     # . _write(2/stderr, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     68/push  2/imm32/stderr
     # . . call
     e8/call  _write/disp32
@@ -1010,7 +1010,7 @@ $get-or-stop:stop:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . write-buffered(err, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0x18/disp8      .                 # push *(ebp+24)
     # . . call
     e8/call  write-buffered/disp32
@@ -1228,7 +1228,7 @@ $get-slice-or-stop:stop:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . write-buffered(err, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0x18/disp8      .                 # push *(ebp+24)
     # . . call
     e8/call  write-buffered/disp32