about summary refs log tree commit diff stats
path: root/subx/073next-token.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-25 23:47:49 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-25 23:47:49 -0700
commit561028444397d2722130ef3bbf4a403acf7964b4 (patch)
tree1917d966a501d5a24aa51ddf08c9d1a5c5dd2c65 /subx/073next-token.subx
parentbd31dbe85418b05a5f9e101525a829c48aa9bf37 (diff)
downloadmu-561028444397d2722130ef3bbf4a403acf7964b4.tar.gz
new primitive: parse-array-of-ints
Mostly for tests. For every new type we want to compare in a test, we're
now going to start using some primitive that can parse its value from string. In this manner we can get syntax for literals in machine code.

Open question: parsing aggregates of aggregates. Like an array of structs.

This is the first time we allocate from the heap in standard library tests.
So we now need to start initializing the heap in all our apps.
Diffstat (limited to 'subx/073next-token.subx')
-rw-r--r--subx/073next-token.subx10
1 files changed, 5 insertions, 5 deletions
diff --git a/subx/073next-token.subx b/subx/073next-token.subx
index 83abc556..b632e47f 100644
--- a/subx/073next-token.subx
+++ b/subx/073next-token.subx
@@ -726,7 +726,7 @@ test-skip-chars-matching-in-slice:
     05/add-to-EAX  4/imm32
     # EAX = skip-chars-matching-in-slice(EAX, ECX, 0x20/space)
     # . . push args
-    68/push  0x20/imm32
+    68/push  0x20/imm32/space
     51/push-ECX
     50/push-EAX
     # . . call
@@ -755,7 +755,7 @@ test-skip-chars-matching-in-slice-none:
     05/add-to-EAX  4/imm32
     # EAX = skip-chars-matching-in-slice(EAX, ECX, 0x20/space)
     # . . push args
-    68/push  0x20/imm32
+    68/push  0x20/imm32/space
     51/push-ECX
     50/push-EAX
     # . . call
@@ -822,7 +822,7 @@ test-skip-chars-not-matching-in-slice:
     05/add-to-EAX  4/imm32
     # EAX = skip-chars-not-matching-in-slice(EAX, ECX, 0x20/space)
     # . . push args
-    68/push  0x20/imm32
+    68/push  0x20/imm32/space
     51/push-ECX
     50/push-EAX
     # . . call
@@ -851,7 +851,7 @@ test-skip-chars-not-matching-in-slice-none:
     05/add-to-EAX  4/imm32
     # EAX = skip-chars-not-matching-in-slice(EAX, ECX, 0x20/space)
     # . . push args
-    68/push  0x20/imm32
+    68/push  0x20/imm32/space
     51/push-ECX
     50/push-EAX
     # . . call
@@ -880,7 +880,7 @@ test-skip-chars-not-matching-in-slice-all:
     05/add-to-EAX  4/imm32
     # EAX = skip-chars-not-matching-in-slice(EAX, ECX, 0x20/space)
     # . . push args
-    68/push  0x20/imm32
+    68/push  0x20/imm32/space
     51/push-ECX
     50/push-EAX
     # . . call