BetaThe type of the rule to be parsed.
Optional Betafilenamefilename (optional): A string value that is used to identify the file to be parsed.
Optional BetamaxmaxASTNodes (optional): Maximum allowed number of AST nodes to create during parsing. Default is 100000. This limit prevents memory exhaustion from inputs with excessive elements. Set to 0 to disable this limit (not recommended for untrusted inputs).
Optional BetamaxmaxEdgeChainDepth (optional): Maximum allowed depth for chained edges. Default is 1000. This limit prevents stack overflow attacks from deeply chained edge structures.
Optional BetamaxmaxHtmlNestingDepth (optional): Maximum allowed nesting depth for HTML-like strings. Default is 100. This limit prevents stack overflow attacks from deeply nested HTML structures.
Optional BetamaxmaxInputSize (optional): Maximum allowed input size in bytes. Default is 10MB (10485760 bytes). This limit prevents memory exhaustion from extremely large inputs. Set to 0 to disable this limit (not recommended for untrusted inputs).
Optional BetamaxmaxNestingDepth (optional): Maximum allowed nesting depth of graph and subgraph bodies (a graph's own body is depth 1). Default is 100. This limit keeps parsing, converting and printing deeply nested input bounded.
Optional Betastart
ParseOptions interface is used to provide additional information to the parser while parsing a rule.