mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 22:46:30 +00:00
add source maps
This commit is contained in:
parent
f760ed589a
commit
0a4ba8fa95
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user