about summary refs log tree commit diff stats
path: root/cpp/011load
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-17 11:23:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-17 13:19:20 -0700
commit3ba6357924e1098a28e43c94a4573a3d2978b5e9 (patch)
tree9a5a4b181a82a77646b1c9d796bdd8b4159dc337 /cpp/011load
parent5f0e4762468c412d57fb54236a0ee90e23a2cb14 (diff)
downloadmu-3ba6357924e1098a28e43c94a4573a3d2978b5e9.tar.gz
949 - paving the way for jumps to labels
Addresses for reagents are now computed after all transforms.
Diffstat (limited to 'cpp/011load')
-rw-r--r--cpp/011load56
1 files changed, 28 insertions, 28 deletions
diff --git a/cpp/011load b/cpp/011load
index 97483e93..d9da1fe3 100644
--- a/cpp/011load
+++ b/cpp/011load
@@ -5,8 +5,8 @@ recipe main [
   1:integer <- copy 23:literal
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
 
 :(code)
 vector<recipe_number> add_recipes(string form) {
@@ -166,8 +166,8 @@ recipe main [
   1:integer <- copy 23:literal
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
 
 :(scenario parse_comment_amongst_instruction)
 recipe main [
@@ -175,8 +175,8 @@ recipe main [
   1:integer <- copy 23:literal
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
 
 :(scenario parse_comment_amongst_instruction2)
 recipe main [
@@ -185,8 +185,8 @@ recipe main [
   # comment
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
 
 :(scenario parse_comment_amongst_instruction3)
 recipe main [
@@ -195,19 +195,19 @@ recipe main [
   2:integer <- copy 23:literal
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   product: {name: "2", value: 2, type: 1, properties: [2: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   product: {name: "2", value: 0, type: 1, properties: [2: integer]}
 
 :(scenario parse_comment_after_instruction)
 recipe main [
   1:integer <- copy 23:literal # comment
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
 
 :(scenario parse_label)
 recipe main [
@@ -221,40 +221,40 @@ recipe main [
   1:integer <- copy 23:literal/foo:bar:baz
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal, foo: bar:baz]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal, foo: bar:baz]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
 
 :(scenario parse_multiple_products)
 recipe main [
   1:integer, 2:integer <- copy 23:literal
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
-+parse:   product: {name: "2", value: 2, type: 1, properties: [2: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
++parse:   product: {name: "2", value: 0, type: 1, properties: [2: integer]}
 
 :(scenario parse_multiple_ingredients)
 recipe main [
   1:integer, 2:integer <- copy 23:literal, 4:integer
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   ingredient: {name: "4", value: 4, type: 1, properties: [4: integer]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
-+parse:   product: {name: "2", value: 2, type: 1, properties: [2: integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   ingredient: {name: "4", value: 0, type: 1, properties: [4: integer]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
++parse:   product: {name: "2", value: 0, type: 1, properties: [2: integer]}
 
 :(scenario parse_multiple_types)
 recipe main [
   1:integer, 2:address:integer <- copy 23:literal, 4:integer
 ]
 +parse: instruction: 1
-+parse:   ingredient: {name: "23", value: 23, type: 0, properties: [23: literal]}
-+parse:   ingredient: {name: "4", value: 4, type: 1, properties: [4: integer]}
-+parse:   product: {name: "1", value: 1, type: 1, properties: [1: integer]}
-+parse:   product: {name: "2", value: 2, type: 2-1, properties: [2: address:integer]}
++parse:   ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]}
++parse:   ingredient: {name: "4", value: 0, type: 1, properties: [4: integer]}
++parse:   product: {name: "1", value: 0, type: 1, properties: [1: integer]}
++parse:   product: {name: "2", value: 0, type: 2-1, properties: [2: address:integer]}
 
 :(scenario parse_properties)
 recipe main [
   1:integer:address/deref <- copy 23:literal
 ]
-+parse:   product: {name: "1", value: 1, type: 1-2, properties: [1: integer:address, deref: ]}
++parse:   product: {name: "1", value: 0, type: 1-2, properties: [1: integer:address, deref: ]}