Skip to main content

Class: Token

Constructors

new Token()

new Token(kind, value, index, input): Token

Parameters

kind: string

value: string

index: number

input: string

Returns

Token

Defined in

src/token.ts:11

Properties

index

readonly index: number

Defined in

src/token.ts:14


input

readonly input: string

Defined in

src/token.ts:15


kind

readonly kind: string

Defined in

src/token.ts:12


value

readonly value: string

Defined in

src/token.ts:13

Methods

lineNumber()

lineNumber(): number

Returns

number

Defined in

src/token.ts:22


toString()

toString(): string

Returns

string

Defined in

src/token.ts:18