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 Ins = Ops | number;
|
||||
|
||||
export type SourceMapping = {
|
||||
bytecodeOffset: number;
|
||||
pos: Pos;
|
||||
};
|
||||
|
||||
// NOTICE: keep up to date with runtime/arch.hpp
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user