Class: OperatorToken

Hierarchy

  • Token

    OperatorToken

Constructors

constructor

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

Overrides Token.constructor

Defined in src/tokens/operator-token.ts:36

Parameters:

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

Returns: OperatorToken

Properties

begin

begin: number

Overrides DelimitedToken.begin

Defined in src/tokens/operator-token.ts:39


end

end: number

Overrides DelimitedToken.end

Defined in src/tokens/operator-token.ts:40


Optional file

file? : undefined | string

Overrides DelimitedToken.file

Defined in src/tokens/operator-token.ts:41


input

input: string

Overrides DelimitedToken.input

Defined in src/tokens/operator-token.ts:38


kind

kind: TokenKind

Inherited from DelimitedToken.kind

Defined in src/tokens/token.ts:5


operator

operator: string

Defined in src/tokens/operator-token.ts:36

Methods

getPosition

getPosition(): number[]

Inherited from DelimitedToken.getPosition

Defined in src/tokens/token.ts:14

Returns: number[]


getPrecedence

getPrecedence(): any

Defined in src/tokens/operator-token.ts:46

Returns: any


getText

getText(): string

Inherited from DelimitedToken.getText

Defined in src/tokens/token.ts:11

Returns: string


size

size(): number

Inherited from DelimitedToken.size

Defined in src/tokens/token.ts:24

Returns: number