add source maps

This commit is contained in:
SimonFJ20 2024-11-18 10:42:11 +01:00
parent f760ed589a
commit 0a4ba8fa95

View File

@ -1,5 +1,17 @@
export type Ins = Ops | number; import { Pos } from "./Token.ts";
export type Output = {
program: Program;
sourceMap: SourceMapping[];
};
export type Program = Ins[]; export type Program = Ins[];
export type Ins = Ops | number;
export type SourceMapping = {
bytecodeOffset: number;
pos: Pos;
};
// NOTICE: keep up to date with runtime/arch.hpp // NOTICE: keep up to date with runtime/arch.hpp