Update some stringification methods

This commit is contained in:
Max Brunsfeld 2013-12-30 23:12:19 -08:00
parent c6699a4c30
commit 3116b457fe
14 changed files with 21 additions and 21 deletions

View file

@ -37,11 +37,11 @@ namespace tree_sitter {
std::ostream& operator<<(std::ostream &stream, const LexAction &action) {
switch (action.type) {
case LexActionTypeError:
return stream << string("(error)");
return stream << string("#<error>");
case LexActionTypeAccept:
return stream << string("(accept ") + action.symbol_name + ")";
return stream << string("#<accept ") + action.symbol_name + ">";
case LexActionTypeAdvance:
return stream << string("(advance ") + to_string(action.state_index) + ")";
return stream << string("#<advance ") + to_string(action.state_index) + ">";
}
}