Skip to content

yaksok.tsDocs


yaksok.ts / Formula

Class: Formula

Extends

Constructors

new Formula()

ts
new Formula(terms): Formula

Parameters

terms: (Evaluable | Operator)[]

Returns

Formula

Overrides

Evaluable.constructor

Defined in

src/node/calculation.ts:57

Properties

position?

ts
optional position: Position;

Inherited from

Evaluable.position

Defined in

src/node/base.ts:16


terms

ts
terms: (Evaluable | Operator)[];

Defined in

src/node/calculation.ts:57


friendlyName

ts
static friendlyName: string = '계산식';

Overrides

Evaluable.friendlyName

Defined in

src/node/calculation.ts:55

Methods

calculateOperatorWithPrecedence()

ts
calculateOperatorWithPrecedence(
   terms, 
   precedence, 
   scope, 
   callFrame): void

Parameters

terms: (Evaluable | Operator)[]

precedence: number

scope: Scope

callFrame: CallFrame

Returns

void

Defined in

src/node/calculation.ts:81


execute()

ts
execute(scope, _callFrame): ValueTypes

Parameters

scope: Scope

_callFrame: CallFrame

Returns

ValueTypes

Overrides

Evaluable.execute

Defined in

src/node/calculation.ts:61


toJSON()

ts
toJSON(): object

Returns

object

Inherited from

Evaluable.toJSON

Defined in

src/node/base.ts:19


toPrint()

ts
toPrint(): string

Returns

string

Overrides

Evaluable.toPrint

Defined in

src/node/calculation.ts:112