Skip to content

Commit c9b247e

Browse files
authored
Fix condition for breaking loop on EPSILON check
1 parent 2570278 commit c9b247e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sets-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default class SetsGenerator {
120120
// And if there was no EPSILON, we're done (otherwise, we
121121
// don't break the loop, and proceed to the next symbol of the RHS.
122122
if (
123-
!firstOfCurrent.hasOwnProperty(EPSILON) ||
123+
!firstOfCurrent.hasOwnProperty(EPSILON) &&
124124
(nonTerminal && !nonTerminal.hasDirectEpsilon)
125125
) {
126126
break;

0 commit comments

Comments
 (0)