We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f9ce20 commit cfa8eb7Copy full SHA for cfa8eb7
pegged/grammar.d
@@ -133,7 +133,8 @@ string grammar(Memoization withMemo = Memoization.yes)(string definition)
133
if (!canFind(allLeftRecursiveRules, rule))
134
allLeftRecursiveRules ~= rule;
135
foreach (cycle; grammarInfo.leftRecursiveCycles)
136
- stoppers ~= cycle[0];
+ if (!stoppers.canFind(cycle[0]))
137
+ stoppers ~= cycle[0];
138
139
// Prints comment showing detected left-recursive cycles.
140
string printLeftRecursiveCycles()
0 commit comments