neyuki 0.1.1

A small Lua-like scripting language implemented in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local buffer = {}

function buffer.create(size: number): any
    if __buffer_create != nil then return __buffer_create(size) end
    error("buffer not supported in this runtime")
end

function buffer.fromstring(str: string): any
    if __buffer_fromstring != nil then return __buffer_fromstring(str) end
    error("buffer not supported in this runtime")
end

function buffer.tostring(b: any): string
    if __buffer_tostring != nil then return __buffer_tostring(b) end
    error("buffer not supported in this runtime")
end

return buffer