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
|
|
@ -19,7 +19,7 @@ size_t String::hash_code() const { return hash<string>()(value); }
|
|||
|
||||
rule_ptr String::copy() const { return std::make_shared<String>(*this); }
|
||||
|
||||
string String::to_string() const { return string("#<string '") + value + "'>"; }
|
||||
string String::to_string() const { return string("(string '") + value + "')"; }
|
||||
|
||||
void String::accept(Visitor *visitor) const { visitor->visit(this); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue