summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc6
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;