@rbxts/insitux
Version:
Extensible s-expression scripting language enabling players to safely mod Roblox games themselves.
8 lines (7 loc) • 545 B
TypeScript
import { Closure, Func, Ins, Val } from "./types";
/** Declare a closure from instructions and other info, calculating its
* captures ahead-of-time. */
export declare function makeClosure(name: string, outerParams: string[], cloParams: string[], cins: Ins[]): Closure;
/** Create a function representing a parent closure, and its sub-closures with
* all values needing captured at this point having been replaced. */
export declare function makeEnclosure({ name, length, captures, derefs }: Closure, cins: Ins[], derefed: Val[]): Func;