Made the output from parse/compile commands more consistent.
This commit is contained in:
parent
812d38c176
commit
6fbf5c551e
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue