diff options
-rw-r--r-- | src/op.cc | 2 | ||||
-rw-r--r-- | src/precmd.cc | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -236,7 +236,7 @@ bool expr_t::op_t::print(std::ostream& out, const context_t& context) const switch (kind) { case VALUE: - as_value().print(out, context.relaxed); + as_value().dump(out, context.relaxed); break; case IDENT: diff --git a/src/precmd.cc b/src/precmd.cc index 9dcdae15..e8f48b6a 100644 --- a/src/precmd.cc +++ b/src/precmd.cc @@ -51,7 +51,8 @@ value_t parse_command(call_scope_t& args) out << std::endl << "--- Text as parsed ---" << std::endl; expr_t expr(*arg); - expr.dump(out); + expr.print(out); + out << std::endl; out << std::endl << "--- Expression tree ---" << std::endl; expr.dump(out); |