about summary refs log tree commit diff stats
path: root/031address.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-05 14:13:26 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-05 14:13:26 -0800
commit8389d168e4e6eada19462cf70249c45508fd1f4d (patch)
tree29de397dd65b71181af8313f6bdf6b6b4fd5668b /031address.cc
parent356c966dc6de9d7a9306eb9da1b731d061331e5d (diff)
downloadmu-8389d168e4e6eada19462cf70249c45508fd1f4d.tar.gz
2373 - bad bug: instruction was losing /lookup
Diffstat (limited to '031address.cc')
-rw-r--r--031address.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/031address.cc b/031address.cc
index 813f0464..2478de03 100644
--- a/031address.cc
+++ b/031address.cc
@@ -114,6 +114,16 @@ recipe main [
 ]
 +mem: storing 34 in location 4
 
+:(scenario get_indirect2)
+recipe main [
+  1:number <- copy 2
+  2:number <- copy 34
+  3:number <- copy 35
+  4:address:number <- copy 5/raw
+  *4:address:number <- get 1:address:point/lookup, 0:offset
+]
++mem: storing 34 in location 5
+
 :(scenario include_nonlookup_properties)
 recipe main [
   1:number <- copy 2
@@ -155,6 +165,7 @@ recipe main [
   2:number <- copy 34
   3:number <- copy *1:address:number
 ]
++parse: ingredient: {"1": <"address" : <"number" : <>>>, "lookup": <>}
 +mem: storing 34 in location 3
 
 :(before "End Parsing reagent")
@@ -165,6 +176,7 @@ recipe main [
   }
   if (name.empty())
     raise_error << "illegal name " << original_string << '\n' << end();
+  properties.at(0).first = name;
 }
 
 //:: helpers for debugging