Allow LookaheadSet::for_each to terminate early
This commit is contained in:
parent
43e14332ed
commit
a8bc67ac42
6 changed files with 19 additions and 5 deletions
|
|
@ -210,6 +210,7 @@ ostream &operator<<(ostream &stream, const LookaheadSet &lookaheads) {
|
|||
stream << "(LookaheadSet";
|
||||
lookaheads.for_each([&stream](Symbol symbol) {
|
||||
stream << " " << symbol;
|
||||
return true;
|
||||
});
|
||||
return stream << ")";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue