Traqula
    Preparing search index...

    Class ParserBuilder<Context, Names, RuleDefs>

    The grammar builder. This is the core of traqula (besides using the amazing chevrotain framework). Using the builder you can create a grammar + AST creator. At any point in time, a parser can be constructed from the added rules. Constructing a parser will cause a validation which will validate the correctness of the grammar.

    Type Parameters

    Index

    Methods

    • Parameters

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

      Returns ParserFromRules<Context, Names, RuleDefs>