mwg API
    Preparing search index...

    Interface PyroeisRuntime

    A Lua 5.4 state the host drives directly: run chunks, call and bind functions, hold references, and resume coroutines. Dotted path arguments address globals and nested tables. Call dispose to release the VM.

    interface PyroeisRuntime {
        call(
            target: string | PyroeisReference,
            args?: readonly PyroeisValue[],
        ): PyroeisValue;
        coroutine(target: string | PyroeisReference): PyroeisCoroutine;
        createTable(binding: PyroeisTableBinding): PyroeisReference;
        defineFunction(
            path: string,
            callback: (...args: PyroeisValue[]) => void | PyroeisValue,
        ): void;
        defineYieldingFunction(
            path: string,
            callback: (...args: PyroeisValue[]) => readonly PyroeisValue[],
        ): void;
        dispose(): void;
        get(path: string): PyroeisValue;
        reference(path: string): PyroeisReference;
        run(source: string, chunkName?: string): PyroeisValue;
        set(path: string, value: PyroeisValue): void;
    }
    Index