slige/compiler/main.ts

6 lines
172 B
TypeScript
Raw Normal View History

2024-12-14 23:07:36 +00:00
import { Compiler } from "./compiler.ts";
2024-11-04 13:54:55 +00:00
2024-12-14 23:07:36 +00:00
const { program } = await new Compiler(Deno.args[0]).compile();
2024-12-11 02:11:00 +00:00
await Deno.writeTextFile("out.slgbc", JSON.stringify(program));