Skip to content

달빛약속 / core/mod / Operator

Class: Operator

Extends

Extended by

Implements

Indexable

[key: string]: unknown

Constructors

new Operator()

new Operator(value, tokens): Operator

Parameters

value

string

tokens

Token[]

Returns

Operator

Overrides

Node.constructor

Defined in

core/node/base.ts:72

Properties

tokens

tokens: Token[]

Inherited from

Node.tokens

Defined in

core/node/base.ts:72


value

value: string

Defined in

core/node/base.ts:72


friendlyName

static friendlyName: string = '연산자'

Overrides

Node.friendlyName

Defined in

core/node/base.ts:70

Methods

call()

call(..._operands): ValueType

Parameters

_operands

...ValueType[]

Returns

ValueType

Implementation of

OperatorNode.call

Defined in

core/node/base.ts:80


toJSON()

toJSON(): object

Returns

object

Inherited from

Node.toJSON

Defined in

core/node/base.ts:13


toPrint()

toPrint(): string

Returns

string

Overrides

Node.toPrint

Defined in

core/node/base.ts:76