Allow LookaheadSet::for_each to terminate early

This commit is contained in:
Max Brunsfeld 2018-03-22 09:10:55 -07:00
parent 43e14332ed
commit a8bc67ac42
6 changed files with 19 additions and 5 deletions

View file

@ -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 << ")";
}