vm: modified the vm to include native procedures, and changed the order of some parameters
This commit is contained in:
@@ -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
|
||||
|]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user