From 6fbf5c551e097acda6f0f08431d190bc4720b740 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 22 Jan 2009 21:16:57 -0400 Subject: Made the output from parse/compile commands more consistent. --- src/main.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main.cc') 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; -- cgit v1.2.3