mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 18:36:31 +00:00
15 lines
430 B
TypeScript
15 lines
430 B
TypeScript
import { Stmt } from "./ast.ts";
|
|
import { Lexer } from "./Lexer.ts";
|
|
import { Parser } from "./Parser.ts";
|
|
|
|
export * from "./Parser.ts";
|
|
export * from "./ast.ts";
|
|
export * from "./arch.ts";
|
|
export * from "./Lexer.ts";
|
|
export * from "./Token.ts";
|
|
|
|
export async function compileWithDebug(filepath: string): Promise<Stmt[]> {
|
|
const text = await Deno.readTextFile(filepath);
|
|
return new Parser(new Lexer(text)).parseStmts();
|
|
}
|