hyperlark (TypeScript)
    Preparing search index...

    Type Alias CustomLexerSpec

    CustomLexerSpec:
        | CustomLexer
        | ((conf: LexerConf) => CustomLexer)
        | (new (conf: LexerConf) => CustomLexer)

    What LarkOptions.lexer accepts for a custom lexer: a class (constructed once as new Cls(conf)), a factory function (called once as f(conf)), or a ready instance. conf is the compiled LexerConf (Lark's lexer_type(lexer_conf) handoff).