ts-graphviz
    Preparing search index...

    Interface ParseOptions<T>Beta

    ParseOptions interface is used to provide additional information to the parser while parsing a rule.

    interface ParseOptions<T extends Rule> {
        filename?: string;
        maxASTNodes?: number;
        maxEdgeChainDepth?: number;
        maxHtmlNestingDepth?: number;
        maxInputSize?: number;
        startRule?: T;
    }

    Type Parameters

    • T extends Rule

      The type of the rule to be parsed.

    Hierarchy (View Summary)

    Index

    Properties

    filename?: string

    filename (optional): A string value that is used to identify the file to be parsed.

    maxASTNodes?: number

    maxASTNodes (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).

    100000
    
    maxEdgeChainDepth?: number

    maxEdgeChainDepth (optional): Maximum allowed depth for chained edges. Default is 1000. This limit prevents stack overflow attacks from deeply chained edge structures.

    1000
    
    maxHtmlNestingDepth?: number

    maxHtmlNestingDepth (optional): Maximum allowed nesting depth for HTML-like strings. Default is 100. This limit prevents stack overflow attacks from deeply nested HTML structures.

    100
    
    maxInputSize?: number

    maxInputSize (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).

    10485760
    
    startRule?: T