Skip to main content

grow_generated_rule_stack

Function grow_generated_rule_stack 

Source
pub fn grow_generated_rule_stack<R>(body: impl FnOnce() -> R) -> R
Expand description

Runs a generated rule body after ensuring native stack capacity, growing onto a segmented stack when remaining capacity enters the red zone.

Generated rule dispatch calls this when BaseParser::generated_rule_stack_check_due fires so deeply nested input parses (or reports a syntax error) instead of aborting the process.