diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-26 20:00:38 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-26 20:02:18 -0700 |
commit | ae256ea13efc77cc767a658c6f61b12cd7461e21 (patch) | |
tree | 18dbcb26423b1d17d0639995c4bd29ec8f3d5c17 /021check_instruction.cc | |
parent | 7bba6e7bb7fd7bfdfc71626a34a08cb96a084b74 (diff) | |
download | mu-ae256ea13efc77cc767a658c6f61b12cd7461e21.tar.gz |
2283 - represent each /property as a tree
Diffstat (limited to '021check_instruction.cc')
-rw-r--r-- | 021check_instruction.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc index e51424f2..2fdaad60 100644 --- a/021check_instruction.cc +++ b/021check_instruction.cc @@ -111,8 +111,8 @@ bool is_mu_address(reagent r) { bool is_mu_number(reagent r) { if (!r.type) return false; if (is_literal(r)) - return r.properties.at(0).second.at(0) == "literal-number" - || r.properties.at(0).second.at(0) == "literal"; + return r.properties.at(0).second->value == "literal-number" + || r.properties.at(0).second->value == "literal"; if (r.type->value == Type_ordinal["character"]) return true; // permit arithmetic on unicode code points return r.type->value == Type_ordinal["number"]; } @@ -120,7 +120,7 @@ bool is_mu_number(reagent r) { bool is_mu_scalar(reagent r) { if (!r.type) return false; if (is_literal(r)) - return r.properties.at(0).second.empty() || r.properties.at(0).second.at(0) != "literal-string"; + return !r.properties.at(0).second || r.properties.at(0).second->value != "literal-string"; if (is_mu_array(r)) return false; return size_of(r) == 1; } |