Skip to content

달빛약속 / Formula

Class: Formula

Extends

Indexable

[key: string]: unknown

Constructors

new Formula()

new Formula(terms): Formula

Parameters

terms

(Evaluable<ValueType> | Operator)[]

Returns

Formula

Overrides

Evaluable.constructor

Defined in

core/node/calculation.ts:58

Properties

position?

optional position: Position

Inherited from

Evaluable.position

Defined in

core/node/base.ts:9


terms

terms: (Evaluable<ValueType> | Operator)[]

Defined in

core/node/calculation.ts:58


friendlyName

static friendlyName: string = '계산식'

Overrides

Evaluable.friendlyName

Defined in

core/node/calculation.ts:56

Methods

calculateOperatorWithPrecedence()

calculateOperatorWithPrecedence(terms, precedence, scope, callFrame): Promise<void>

Parameters

terms

(ValueType | Evaluable<ValueType> | Operator)[]

precedence

number

scope

Scope

callFrame

CallFrame

Returns

Promise<void>

Defined in

core/node/calculation.ts:85


execute()

execute(scope, _callFrame): Promise<ValueType>

Parameters

scope

Scope

_callFrame

CallFrame

Returns

Promise<ValueType>

Overrides

Evaluable.execute

Defined in

core/node/calculation.ts:62


toJSON()

toJSON(): object

Returns

object

Inherited from

Evaluable.toJSON

Defined in

core/node/base.ts:12


toPrint()

toPrint(): string

Returns

string

Overrides

Evaluable.toPrint

Defined in

core/node/calculation.ts:123