forked from defunkt/ReefVM
8 lines
226 B
TypeScript
8 lines
226 B
TypeScript
import type { Bytecode } from "./bytecode"
|
|
import type { Value } from "./value"
|
|
import { VM } from "./vm"
|
|
|
|
export async function run(bytecode: Bytecode): Promise<Value> {
|
|
const vm = new VM(bytecode)
|
|
return await vm.run()
|
|
} |