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 10, 2025
1 parent fd394af commit 6cb5c23
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 @@ -348,7 +348,7 @@ auto Lalr1Parser<TypedNfaState, TypedDfaState>::generate_lr1_item_sets() -> void
for (auto const& kv : m_lr0_item_sets) {
auto lr1_item_set_ptr = std::make_unique<ItemSet>();
for (auto const& l0_item : kv.second->m_kernel) {
for (auto const& lookahead : lookaheads[l0_item]) {
for (auto const lookahead : lookaheads[l0_item]) {
Item lr1_item(l0_item.m_production, l0_item.m_dot, lookahead);
lr1_item_set_ptr->m_kernel.insert(lr1_item);
}
Expand Down

0 comments on commit 6cb5c23

Please sign in to comment.