MCPcopy Create free account
hub / github.com/davidblewett/rure-python / nest_limit

Method nest_limit

regex/regex-syntax/src/parser.rs:59–62  ·  view source on GitHub ↗

Set the nesting limit for this parser. The nesting limit controls how deep the abstract syntax tree is allowed to be. If the AST exceeds the given limit (e.g., with too many nested groups), then an error is returned by the parser. The purpose of this limit is to act as a heuristic to prevent stack overflow for consumers that do structural induction on an `Ast` using explicit recursion. While thi

(&mut self, limit: u32)

Source from the content-addressed store, hash-verified

57 /// in an obvious way in the concrete syntax, therefore, it should not be
58 /// used in a granular way.
59 pub fn nest_limit(&mut self, limit: u32) -> &mut ParserBuilder {
60 self.ast.nest_limit(limit);
61 self
62 }
63
64 /// Whether to support octal syntax or not.
65 ///

Callers 1

parseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected