mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-10 08:48:49 +00:00
x86 up to closures
This commit is contained in:
parent
e529ba1472
commit
763f5fe486
4 changed files with 49 additions and 48 deletions
|
|
@ -120,7 +120,7 @@ module Builtin =
|
|||
| ".length" -> (st, i, o, (Value.of_int (match List.hd args with Value.Sexp (_, a) | Value.Array a -> Array.length a | Value.String s -> Bytes.length s))::vs)
|
||||
| ".array" -> (st, i, o, (Value.of_array @@ Array.of_list args)::vs)
|
||||
| ".stringval" -> let [a] = args in (st, i, o, (Value.of_string @@ Value.string_val a)::vs)
|
||||
| "_gc_init" -> (st, i, o, vs)
|
||||
| "__gc_init" -> (st, i, o, vs)
|
||||
| "raw" -> let [a] = args in (st, i, o, a :: vs)
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue