TOC Toolkit API - v0.1.0
    Preparing search index...

    Interface Token<Kind>

    A piece of a source text that a lexer recognised. Kind is the enum of the token kinds of the notation.

    interface Token<Kind extends string> {
        kind: Kind;
        text: string;
        span: Span;
    }

    Type Parameters

    • Kind extends string
    Index
    kind: Kind
    text: string

    What the token stands for. For a quoted symbol it is the name without its quotes and escapes, and for every other token it is the source text.

    span: Span

    The place of the token in the source text, with its quotes.