Traqula
    Preparing search index...

    Interface ParserBuildArgs

    Configuration for ParserBuilder.build. Specifies the token vocabulary, optional Chevrotain parser/lexer configuration, and optional hooks for preprocessing input or handling parse errors.

    interface ParserBuildArgs {
        errorHandler?: (errors: IRecognitionException[]) => void;
        lexerConfig?: ILexerConfig;
        parserConfig?: IParserConfig;
        queryPreProcessor?: (input: string) => string;
        tokenVocabulary: readonly TokenType[];
    }
    Index

    Properties

    errorHandler?: (errors: IRecognitionException[]) => void

    Optional custom error handler. If omitted, a default handler throws on the first error.

    lexerConfig?: ILexerConfig

    Optional Chevrotain lexer configuration (e.g., positionTracking).

    parserConfig?: IParserConfig

    Optional Chevrotain parser configuration (e.g., maxLookahead).

    queryPreProcessor?: (input: string) => string

    Optional function to preprocess the input string before lexing.

    tokenVocabulary: readonly TokenType[]

    The complete token vocabulary the parser and lexer should recognize.