mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-31 02:00:51 +00:00
24 lines
378 B
TypeScript
24 lines
378 B
TypeScript
export type File = {
|
|
stmts: Stmt[];
|
|
};
|
|
|
|
export type Stmt = {
|
|
id: number;
|
|
kind: StmtKind;
|
|
};
|
|
|
|
export type StmtKind =
|
|
| { tag: "error" }
|
|
| { tag: "mod_block" } & ModBlockStmt
|
|
| { tag: "mod_file" } & ModFileStmt;
|
|
|
|
export type ModBlockStmt = {
|
|
ident: string;
|
|
stmts: Stmt[];
|
|
};
|
|
|
|
export type ModFileStmt = {
|
|
ident: string;
|
|
filePath: string;
|
|
};
|