Skip to main content

MAX_PARSE_DEPTH

Constant MAX_PARSE_DEPTH 

Source
pub const MAX_PARSE_DEPTH: usize = 200;
Expand description

Bound on parser recursion (paren nesting) plus binary-operator nodes, so both the parser and anything that later walks the AST recursively (describe, serialize, drop) stay far from the stack limit on hostile input. Matches improv_core_model’s formula-parser limit.