Skip to content

Commit

Permalink
Update src/log_surgeon/Lalr1Parser.tpp
Browse files Browse the repository at this point in the history
Co-authored-by: Lin Zhihao <[email protected]>
  • Loading branch information
SharafMohamed and LinZhihao-723 authored Jan 9, 2025
1 parent 013997c commit 88e2cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log_surgeon/Lalr1Parser.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ auto Lalr1Parser<TypedNfaState, TypedDfaState>::generate_lr1_closure(ItemSet* it
lookaheads.push_back(item.m_lookahead);
}
for (auto* const p : m_non_terminals.at(next_symbol)) {
for (auto const& l : lookaheads) {
for (auto const l : lookaheads) {
queue.emplace_back(p, 0, l);
}
}
Expand Down

0 comments on commit 88e2cc2

Please sign in to comment.