delete runtime

This commit is contained in:
SimonFJ20 2024-11-08 09:24:09 +01:00
parent 3a8d833e6a
commit 86bcf39b65
3 changed files with 2 additions and 7 deletions

View File

@ -13,7 +13,7 @@ PushPtr ptr pointer value
Pop Pop
LoadLocal int stack position LoadLocal int stack position
StoreLocal int stack position StoreLocal int stack position
Call Call int arg count
Return Return
Jump Jump
JumpIfNotZero JumpIfNotZero

View File

@ -1,6 +1,7 @@
export type Ins = Ops | number; export type Ins = Ops | number;
export type Program = Ins[]; export type Program = Ins[];
export type Ops = typeof Ops;
export const Ops = { export const Ops = {
Nop: 0, Nop: 0,
PushNull: 1, PushNull: 1,
@ -28,4 +29,3 @@ export const Ops = {
Xor: 23, Xor: 23,
Not: 24, Not: 24,
} as const; } as const;
export type Ops = typeof Ops;

View File

@ -1,5 +0,0 @@
import { Program } from "./arch";
export class VM {
public constructor(private program: Program) {}
}