diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-11-11 23:30:16 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-11-11 23:30:37 -0800 |
commit | e41e8e09e6bdb95dc24b910801f795123fb272d6 (patch) | |
tree | 034f0c6c6ef068764396c86276ff463ba25ba71a | |
parent | aa3d29a5666afecd6bce1821ff72ccc5600b431f (diff) | |
download | mu-e41e8e09e6bdb95dc24b910801f795123fb272d6.tar.gz |
3669
-rw-r--r-- | 029tools.cc | 10 | ||||
-rw-r--r-- | 038new_text.cc | 2 | ||||
-rw-r--r-- | 058to_text.cc | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/029tools.cc b/029tools.cc index ce0794c4..935dd4ed 100644 --- a/029tools.cc +++ b/029tools.cc @@ -33,7 +33,7 @@ case TRACE: { ostringstream out; for (int i = 2; i < SIZE(current_instruction().ingredients); ++i) { if (i > 2) out << ' '; - out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i)); + out << inspect(current_instruction().ingredients.at(i), ingredients.at(i)); } trace(depth, label) << out.str() << end(); break; @@ -54,7 +54,7 @@ case STASH: { ostringstream out; for (int i = 0; i < SIZE(current_instruction().ingredients); ++i) { if (i) out << ' '; - out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i)); + out << inspect(current_instruction().ingredients.at(i), ingredients.at(i)); } trace(2, "app") << out.str() << end(); break; @@ -80,10 +80,10 @@ def main [ +app: foo: 34 :(code) -string print_mu(const reagent& r, const vector<double>& data) { +string inspect(const reagent& r, const vector<double>& data) { if (is_literal(r)) return r.name; - // End print Special-cases(r, data) + // End inspect Special-cases(r, data) ostringstream out; for (long long i = 0; i < SIZE(data); ++i) { if (i) out << ' '; @@ -331,7 +331,7 @@ case _LOG: { case _LOG: { ostringstream out; for (int i = 0; i < SIZE(current_instruction().ingredients); ++i) { - out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i)); + out << inspect(current_instruction().ingredients.at(i), ingredients.at(i)); } LOG << out.str() << '\n'; break; diff --git a/038new_text.cc b/038new_text.cc index c449e6c9..c8a02881 100644 --- a/038new_text.cc +++ b/038new_text.cc @@ -71,7 +71,7 @@ def main [ ] +app: foo: abc -:(before "End print Special-cases(r, data)") +:(before "End inspect Special-cases(r, data)") if (is_mu_text(r)) { assert(scalar(data)); return read_mu_text(data.at(0)); diff --git a/058to_text.cc b/058to_text.cc index becc3842..e845218c 100644 --- a/058to_text.cc +++ b/058to_text.cc @@ -18,6 +18,6 @@ case TO_TEXT: { :(before "End Primitive Recipe Implementations") case TO_TEXT: { products.resize(1); - products.at(0).push_back(new_mu_text(print_mu(current_instruction().ingredients.at(0), ingredients.at(0)))); + products.at(0).push_back(new_mu_text(inspect(current_instruction().ingredients.at(0), ingredients.at(0)))); break; } |