Type alias Data<TToken, TOptions>

Data<TToken, TOptions>: {
    options: TOptions;
    tokens: TToken[];
}

Data that is passed around between composed Parsers.

Intended to be static, although nothing prevents you from accumulating data inside options object if parsed grammar allows to do so.

Type Parameters

  • TToken

  • TOptions

Type declaration

  • options: TOptions

    Parser options object.

  • tokens: TToken[]

    Tokens array - the subject of parsing.

Generated using TypeDoc