diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-22 21:16:57 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-22 21:16:57 -0400 |
commit | 6fbf5c551e097acda6f0f08431d190bc4720b740 (patch) | |
tree | e0fc024e88d2f9e03358c4805c25803a421b4c41 /src/main.cc | |
parent | 812d38c176b76b0fda5228338f5c5d70b3c6edf1 (diff) | |
download | fork-ledger-6fbf5c551e097acda6f0f08431d190bc4720b740.tar.gz fork-ledger-6fbf5c551e097acda6f0f08431d190bc4720b740.tar.bz2 fork-ledger-6fbf5c551e097acda6f0f08431d190bc4720b740.zip |
Made the output from parse/compile commands more consistent.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc index 22aef96f..2c55abf0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -187,12 +187,11 @@ namespace ledger { string verb = *arg++; if (verb == "parse") { - expr_t expr(*arg); - out << "--- Input text ---" << std::endl; out << *arg << std::endl; out << std::endl << "--- Text as parsed ---" << std::endl; + expr_t expr(*arg); expr.print(out); out << std::endl; @@ -206,12 +205,11 @@ namespace ledger { return 0; } else if (verb == "compile") { - expr_t expr(*arg); - out << "--- Input text ---" << std::endl; out << *arg << std::endl; out << std::endl << "--- Text as parsed ---" << std::endl; + expr_t expr(*arg); expr.print(out); out << std::endl; |