hyperlark (TypeScript)
    Preparing search index...

    Interface CustomLexerToken

    A token yielded by a custom lexer: terminal NAME + matched text, plus any of the six optional positions (absent/null positions stay null — the engines never recompute them). Extra fields are preserved: the ORIGINAL yielded objects become the tree leaves.

    interface CustomLexerToken {
        column?: number | null;
        end_column?: number | null;
        end_line?: number | null;
        end_pos?: number | null;
        line?: number | null;
        start_pos?: number | null;
        type: string;
        value: string;
        [extra: string]: unknown;
    }

    Indexable

    • [extra: string]: unknown

      Arbitrary extra fields ride the original object back into the tree.

    Index
    column?: number | null
    end_column?: number | null
    end_line?: number | null
    end_pos?: number | null
    line?: number | null
    start_pos?: number | null
    type: string

    Terminal name known to the grammar, e.g. "NUMBER".

    value: string

    Matched text (must be a string).