Made the output from parse/compile commands more consistent.

This commit is contained in:
John Wiegley 2009-01-22 21:16:57 -04:00
parent 812d38c176
commit 6fbf5c551e

View file

@ -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;