Skip to content

yaksok.tsDocs


yaksok.ts / Runtime

Class: Runtime

Constructors

new Runtime()

ts
new Runtime(codeTexts, config): Runtime

Parameters

codeTexts: Record<string, string>

config: Partial<RuntimeConfig>

Returns

Runtime

Defined in

src/runtime/index.ts:20

Properties

entryPoint

ts
entryPoint: string;

Defined in

src/runtime/index.ts:14


flags

ts
flags: Partial<Partial<Record<FUTURE_FUNCTION_INVOKE_SYNTAX, boolean>>> = {};

Defined in

src/runtime/index.ts:16


runFFI()

ts
runFFI: (runtime, code, args) => ValueTypes;

Parameters

runtime: string

code: string

args: FunctionParams

Returns

ValueTypes

Defined in

src/runtime/index.ts:15


stderr()

ts
stderr: (message) => void;

Parameters

message: string

Returns

void

Defined in

src/runtime/index.ts:13


stdout()

ts
stdout: (message) => void;

Parameters

message: string

Returns

void

Defined in

src/runtime/index.ts:12

Methods

getCodeFile()

ts
getCodeFile(fileName): CodeFile

Parameters

fileName: string = ...

Returns

CodeFile

Defined in

src/runtime/index.ts:62


run()

ts
run(fileName): ExecuteResult<Block>

Parameters

fileName: string = ...

Returns

ExecuteResult<Block>

Defined in

src/runtime/index.ts:39