From f8b56b793d48f49c3aecbbbb76c77ef1261a0dcf Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 25 May 2016 19:33:00 -0700 Subject: 3009 --- 010vm.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/010vm.cc b/010vm.cc index 67dd0e1a..ffa661ef 100644 --- a/010vm.cc +++ b/010vm.cc @@ -275,14 +275,18 @@ reagent::reagent(const string& s) :original_string(s), type(NULL), value(0), ini if (name == "_" && type == NULL) type = new type_tree("literal", get(Type_ordinal, "literal")); // other properties + slurp_properties(in, properties); + // End Parsing reagent +} + +void slurp_properties(istream& in, vector >& out) { while (has_data(in)) { istringstream row(slurp_until(in, '/')); row >> std::noskipws; string key = slurp_until(row, ':'); string_tree* value = parse_property_list(row); - properties.push_back(pair(key, value)); + out.push_back(pair(key, value)); } - // End Parsing reagent } string_tree* parse_property_list(istream& in) { -- cgit 1.4.1-2-gfad0