6ce97457bf
So far, left recursion detector assumed that left recursion occurs only when the recursive rule is at the very left-hand side of rule's expression: start = start This didn't catch cases like this: start = "a"? start In general, if a rule reference can be reached without consuming any input, it can lead to left recursion. This commit fixes the detector to consider that. Fixes #190. |
||
---|---|---|
.. | ||
generate-bytecode.spec.js | ||
helpers.js | ||
remove-proxy-rules.spec.js | ||
report-left-recursion.spec.js | ||
report-missing-rules.spec.js |