Skip to content

Commit

Permalink
fix: fix change detection in first
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin-Yeung committed Nov 17, 2023
1 parent cd2d000 commit a912429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/first.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'grammar> First<'grammar> {
.filter(|term| term != &&Term::Terminal("ε".to_string()))
{
// First(Y1) ∖ {ε} to First(X)
changed = builder.insert_first_no_epsilon(&production.lhs, term);
changed |= builder.insert_first_no_epsilon(&production.lhs, term);
println!(
"Rule3/4: Push First({}) \\ ε to First({})",
term,
Expand Down

0 comments on commit a912429

Please sign in to comment.