leftRecursion

Marks the current production as left-recursive.

This function must be called at the beginning of a production, before any pattern elements are added. Left-recursive productions are handled specially during parsing to avoid infinite recursion while still supporting left-recursive grammars.

Do not explicitly add a reference to this Rule to create a left-recursive production; calling this marker will automatically mark the production as left-recursive.

Return

this RuleBuilder for chaining

Throws

if called after pattern elements have been added