about summary refs log tree commit diff stats
path: root/054dilated_reagent.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-26 20:00:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-26 20:02:18 -0700
commitae256ea13efc77cc767a658c6f61b12cd7461e21 (patch)
tree18dbcb26423b1d17d0639995c4bd29ec8f3d5c17 /054dilated_reagent.cc
parent7bba6e7bb7fd7bfdfc71626a34a08cb96a084b74 (diff)
downloadmu-ae256ea13efc77cc767a658c6f61b12cd7461e21.tar.gz
2283 - represent each /property as a tree
Diffstat (limited to '054dilated_reagent.cc')
-rw-r--r--054dilated_reagent.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/054dilated_reagent.cc b/054dilated_reagent.cc
index af7e5820..70217ee4 100644
--- a/054dilated_reagent.cc
+++ b/054dilated_reagent.cc
@@ -80,13 +80,11 @@ if (s.at(0) == '{') {
     string key = next_dilated_word(in);
     if (key.empty()) continue;
     string value = next_dilated_word(in);
-    vector<string> values;
-    values.push_back(value);
-    properties.push_back(pair<string, vector<string> >(key, values));
+    properties.push_back(pair<string, string_tree*>(key, new string_tree(value)));
   }
   // structures for the first row of properties
   name = properties.at(0).first;
-  string type_name = properties.at(0).second.at(0);
+  string type_name = properties.at(0).second->value;
   if (Type_ordinal.find(type_name) == Type_ordinal.end()) {
       // this type can't be an integer
     Type_ordinal[type_name] = Next_type_ordinal++;