Files
olisp/lib/vm/native.ml
T
haxala1r d846046c4a
ci/woodpecker/push/debian Pipeline was successful
ci/woodpecker/push/nix Pipeline was successful
ci/woodpecker/push/fedora Pipeline was successful
ci/woodpecker/push/publish Pipeline was successful
Big changes:
Compiler and VM are now working well enough to support larger programs.
A test program is included and executed immediately upon running
the executable.

A more feature complete read-eval-print loop is planned.
2026-04-26 00:55:43 +03:00

18 lines
284 B
OCaml

(* 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 : Types.value) =
print_endline (print_value v);
Types.Nil
let table = [|
builtin_print
|]