vm: modified the vm to include native procedures, and changed the order of some parameters

This commit is contained in:
2026-04-25 00:08:54 +03:00
parent 06d0b4d2bf
commit 2822774931
3 changed files with 67 additions and 36 deletions
+19
View File
@@ -0,0 +1,19 @@
(* This file implements native functions of the VM runtime.
Stuff like printing to the screen, file I/O etc will be implemented
here.
*)
open Types
let builtin_print (v : value) =
ignore v;
Nil
let table = [|
builtin_print
|]