From 86bcf39b65188117191c2ceaead23fe1d4d4bcc5 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Fri, 8 Nov 2024 09:24:09 +0100 Subject: [PATCH] delete runtime --- architecture.txt | 2 +- src/arch.ts | 2 +- src/runtime.ts | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 src/runtime.ts diff --git a/architecture.txt b/architecture.txt index c7a34d4..71121df 100644 --- a/architecture.txt +++ b/architecture.txt @@ -13,7 +13,7 @@ PushPtr ptr pointer value Pop LoadLocal int stack position StoreLocal int stack position -Call +Call int arg count Return Jump JumpIfNotZero diff --git a/src/arch.ts b/src/arch.ts index d9a4f47..db8287a 100644 --- a/src/arch.ts +++ b/src/arch.ts @@ -1,6 +1,7 @@ export type Ins = Ops | number; export type Program = Ins[]; +export type Ops = typeof Ops; export const Ops = { Nop: 0, PushNull: 1, @@ -28,4 +29,3 @@ export const Ops = { Xor: 23, Not: 24, } as const; -export type Ops = typeof Ops; diff --git a/src/runtime.ts b/src/runtime.ts deleted file mode 100644 index 5f37fc3..0000000 --- a/src/runtime.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Program } from "./arch"; - -export class VM { - public constructor(private program: Program) {} -}