Improve stream method for Items
This commit is contained in:
parent
a77ca1ee08
commit
5ce55ce26f
1 changed files with 4 additions and 4 deletions
|
|
@ -21,18 +21,18 @@ namespace tree_sitter {
|
|||
|
||||
ostream& operator<<(ostream &stream, const LexItem &item) {
|
||||
return stream <<
|
||||
string("#<item '") <<
|
||||
string("#<item ") <<
|
||||
item.lhs <<
|
||||
string("' ") <<
|
||||
string(" ") <<
|
||||
*item.rule <<
|
||||
string(">");
|
||||
}
|
||||
|
||||
ostream& operator<<(ostream &stream, const ParseItem &item) {
|
||||
return stream <<
|
||||
string("#<item '") <<
|
||||
string("#<item ") <<
|
||||
item.lhs <<
|
||||
string("' ") <<
|
||||
string(" ") <<
|
||||
*item.rule <<
|
||||
string(" ") <<
|
||||
to_string(item.consumed_symbols.size()) <<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue