Class: OperatorToken

Hierarchy

  • Token

    OperatorToken

Constructors

constructor

+ new OperatorToken(input: string, begin: number, end: number, file?: undefined | string): OperatorToken

Overrides Token.constructor

Defined in tokens/operator-token.ts:17

Parameters:

Name Type
input string
begin number
end number
file? undefined | string

Returns: OperatorToken

Properties

begin

begin: number

Overrides Token.begin

Defined in tokens/operator-token.ts:20


end

end: number

Overrides Token.end

Defined in tokens/operator-token.ts:21


Optional file

file? : undefined | string

Overrides Token.file

Defined in tokens/operator-token.ts:22


input

input: string

Overrides Token.input

Defined in tokens/operator-token.ts:19


kind

kind: TokenKind

Inherited from Token.kind

Defined in tokens/token.ts:5


operator

operator: string

Defined in tokens/operator-token.ts:17

Methods

getPosition

getPosition(): number[]

Inherited from Token.getPosition

Defined in tokens/token.ts:14

Returns: number[]


getPrecedence

getPrecedence(): any

Defined in tokens/operator-token.ts:27

Returns: any


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