Skip to content

달빛약속 / core/mod / NumberLiteral

Class: NumberLiteral

Extends

Indexable

[key: string]: unknown

Constructors

new NumberLiteral()

new NumberLiteral(content, tokens): NumberLiteral

Parameters

content

number

tokens

Token[]

Returns

NumberLiteral

Overrides

Evaluable.constructor

Defined in

core/node/primitive-literal.ts:10

Properties

tokens

tokens: Token[]

Inherited from

Evaluable.tokens

Defined in

core/node/primitive-literal.ts:10


friendlyName

static friendlyName: string = '숫자'

Overrides

Evaluable.friendlyName

Defined in

core/node/primitive-literal.ts:8

Methods

execute()

execute(_scope): Promise<NumberValue>

Parameters

_scope

Scope

Returns

Promise<NumberValue>

Overrides

Evaluable.execute

Defined in

core/node/primitive-literal.ts:14


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/primitive-literal.ts:18