slige/compiler/lib.ts

7 lines
241 B
TypeScript
Raw Normal View History

2024-12-15 00:07:36 +01:00
import { Compiler, CompileResult } from "./compiler.ts";
export async function compileWithDebug(path: string): Promise<CompileResult> {
const { program, fnNames } = await new Compiler(path).compile();
return { program, fnNames };
}