Tweak format for pretty printing some classes
This commit is contained in:
parent
2963b08f79
commit
6f374fddff
14 changed files with 27 additions and 29 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue