Skip to content

달빛약속 / core/mod / Formula

Class: Formula

Extends

Indexable

[key: string]: unknown

Constructors

new Formula()

new Formula(terms, tokens): Formula

Parameters

terms

(Evaluable<ValueType> | Operator)[]

tokens

Token[]

Returns

Formula

Overrides

Evaluable.constructor

Defined in

core/node/calculation.ts:68

Properties

terms

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

Defined in

core/node/calculation.ts:69


tokens

tokens: Token[]

Inherited from

Evaluable.tokens

Defined in

core/node/calculation.ts:70


friendlyName

static friendlyName: string = '계산식'

Overrides

Evaluable.friendlyName

Defined in

core/node/calculation.ts:66

Methods

calculateOperatorWithPrecedence()

calculateOperatorWithPrecedence(termsWithToken, precedence, scope): Promise<void>

Parameters

termsWithToken

object[]

precedence

number

scope

Scope

Returns

Promise<void>

Defined in

core/node/calculation.ts:96


execute()

execute(scope): Promise<ValueType>

Parameters

scope

Scope

Returns

Promise<ValueType>

Overrides

Evaluable.execute

Defined in

core/node/calculation.ts:75


toJSON()

toJSON(): object

Returns

object

Inherited from

Evaluable.toJSON

Defined in

core/node/base.ts:13


toPrint()

toPrint(): string

Returns

string

Overrides

Evaluable.toPrint

Defined in

core/node/calculation.ts:172