Tweak format for pretty printing some classes

This commit is contained in:
Max Brunsfeld 2014-08-23 13:52:00 -07:00
parent 2963b08f79
commit 6f374fddff
14 changed files with 27 additions and 29 deletions

View file

@ -30,7 +30,7 @@ size_t Seq::hash_code() const { return left->hash_code() ^ right->hash_code(); }
rule_ptr Seq::copy() const { return std::make_shared<Seq>(*this); }
string Seq::to_string() const {
return string("#<seq ") + left->to_string() + " " + right->to_string() + ">";
return string("(seq ") + left->to_string() + " " + right->to_string() + ")";
}
void Seq::accept(Visitor *visitor) const { visitor->visit(this); }