hyperlark (TypeScript)
    Preparing search index...

    Interface CustomLexer

    A custom lexer instance: lex is called lazily once per parse and its iterator (or iterable — a generator is both) is pulled one token at a time, interleaved with the parser. Synchronous only (parse is sync).

    interface CustomLexer {
        lex(
            input: string,
            parserState: CustomLexerParserState,
        ):
            | Iterable<CustomLexerToken, any, any>
            | Iterator<CustomLexerToken, any, any>;
    }
    Index