Interface IToken

Interface representing a token in the system.

interface IToken {
    index: number;
    token: string;
    type: TokenType;
}

Properties

Properties

index: number

The index of the token in the source.

token: string

The string value of the token.

type: TokenType

The type of the token, defined by the TokenType enum.