Class: NumberToken

Hierarchy

Constructors

constructor

+ new NumberToken(whole: WordToken, decimal?: WordToken): NumberToken

Overrides Token.constructor

Defined in tokens/number-token.ts:5

Parameters:

Name Type
whole WordToken
decimal? WordToken

Returns: NumberToken

Properties

begin

begin: number

Inherited from Token.begin

Defined in tokens/token.ts:7


Optional decimal

decimal? : WordToken

Defined in tokens/number-token.ts:8


end

end: number

Inherited from Token.end

Defined in tokens/token.ts:8


Optional file

file? : undefined | string

Inherited from Token.file

Defined in tokens/token.ts:9


input

input: string

Inherited from Token.input

Defined in tokens/token.ts:6


kind

kind: TokenKind

Inherited from Token.kind

Defined in tokens/token.ts:5


whole

whole: WordToken

Defined in tokens/number-token.ts:7

Methods

getPosition

getPosition(): number[]

Inherited from Token.getPosition

Defined in tokens/token.ts:14

Returns: number[]


getText

getText(): string

Inherited from Token.getText

Defined in tokens/token.ts:11

Returns: string


size

size(): number

Inherited from Token.size

Defined in tokens/token.ts:24

Returns: number