summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-22 18:51:33 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-22 18:51:33 -0400
commit233289681049e2b740919eed6b12ed7db1ccf2df (patch)
tree74ff0a3c57536c69c74276fd319a349c87e79315
parentba183549470509d44c9c422ede4910ceaa4ab637 (diff)
downloadfork-ledger-233289681049e2b740919eed6b12ed7db1ccf2df.tar.gz
fork-ledger-233289681049e2b740919eed6b12ed7db1ccf2df.tar.bz2
fork-ledger-233289681049e2b740919eed6b12ed7db1ccf2df.zip
Changed some debug strings when parsing/compiling valexprs.
-rw-r--r--src/main.cc26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/main.cc b/src/main.cc
index c50284d5..22aef96f 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -189,18 +189,17 @@ namespace ledger {
if (verb == "parse") {
expr_t expr(*arg);
- out << "Value expression as input: " << *arg << std::endl;
+ out << "--- Input text ---" << std::endl;
+ out << *arg << std::endl;
- out << "Value expression as parsed: ";
+ out << std::endl << "--- Text as parsed ---" << std::endl;
expr.print(out);
out << std::endl;
- out << std::endl;
- out << "--- Parsed tree ---" << std::endl;
+ out << std::endl << "--- Expression tree ---" << std::endl;
expr.dump(out);
- out << std::endl;
- out << "--- Calculated value ---" << std::endl;
+ out << std::endl << "--- Calculated value ---" << std::endl;
expr.calc(report).print(out);
out << std::endl;
@@ -209,23 +208,22 @@ namespace ledger {
else if (verb == "compile") {
expr_t expr(*arg);
- out << "Value expression as input: " << *arg << std::endl;
- out << "Value expression as parsed: ";
+ out << "--- Input text ---" << std::endl;
+ out << *arg << std::endl;
+
+ out << std::endl << "--- Text as parsed ---" << std::endl;
expr.print(out);
out << std::endl;
- out << std::endl;
- out << "--- Parsed tree ---" << std::endl;
+ out << std::endl << "--- Expression tree ---" << std::endl;
expr.dump(out);
expr.compile(report);
- out << std::endl;
- out << "--- Compiled tree ---" << std::endl;
+ out << std::endl << "--- Compiled tree ---" << std::endl;
expr.dump(out);
- out << std::endl;
- out << "--- Calculated value ---" << std::endl;
+ out << std::endl << "--- Calculated value ---" << std::endl;
expr.calc(report).print(out);
out << std::endl;