about summary refs log tree commit diff stats
path: root/055parse_tree.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-07 08:27:16 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-07 08:27:16 -0800
commit15f79a66ee32a8cce7667a9c9ec718517a48f2bf (patch)
tree849c13d293dc9a34194042ca7fd170064b397a7b /055parse_tree.cc
parent9867dff44cd0834edc7a26e931cc0e75757aef1f (diff)
downloadmu-15f79a66ee32a8cce7667a9c9ec718517a48f2bf.tar.gz
2385 - tests passing until layer 58
Diffstat (limited to '055parse_tree.cc')
-rw-r--r--055parse_tree.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/055parse_tree.cc b/055parse_tree.cc
index 1260bf36..8f93c1c7 100644
--- a/055parse_tree.cc
+++ b/055parse_tree.cc
@@ -59,9 +59,14 @@ string_tree* parse_string_tree(istream& in) {
 :(scenario dilated_reagent_with_type_tree)
 % Hide_errors = true;  // 'map' isn't defined yet
 recipe main [
-  {1: (map (address array character) (list number))} <- copy 34
+  {1: (foo (address array character) (bar number))} <- copy 34
 ]
-+parse:   product: {"1": <"map" : <<"address" : <"array" : <"character" : <>>>> : <<"list" : <"number" : <>>> : <>>>>}
+# just to avoid errors
+container foo [
+]
+container bar [
+]
++parse:   product: {"1": <"foo" : <<"address" : <"array" : <"character" : <>>>> : <<"bar" : <"number" : <>>> : <>>>>}
 
 //: an exception is 'new', which takes a type tree as its ingredient *value*