-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.wu
53 lines (42 loc) · 1.75 KB
/
init.wu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Wu standard library
# Copyright: 2018 wu-lang, MIT License
# Author: evolbug <github.com/evolbug>
# Lua constant wrappers
_G: extern any
_VERSION: extern str
# Lua Global method wrapper
assert: extern fun(bool, str?)
collectgarbage: extern fun(str?, int?) -> any?
dofile: extern fun(str?) -> ...?
error: extern fun(str, int?)
getfenv: extern fun(any) -> any
getmetatable: extern fun(any) -> any?
ipairs: extern fun(any) -> ... # (fun, any, int)
load: extern fun(fun, str?) -> fun
loadfile: extern fun(str?) -> fun
loadstring: extern fun(str, str?) -> ...? # (fun?, str?)
next: extern fun(any, any?) -> any?
pairs: extern fun(any) -> ... # (fun, any)
pcall: extern fun(fun, ...?) -> ...?
print: extern fun(...?)
rawequal: extern fun(any, any) -> bool
rawget: extern fun(any, any) -> any
rawset: extern fun(any, any, any) -> any
require: extern fun(str) -> any
select: extern fun(any, ...) -> ...?
setfenv: extern fun(fun, any) -> fun
setmetatable: extern fun(any, any) -> any
tonumber: extern fun(any, int?) -> float
tostring: extern fun(any) -> str
type: extern fun(any) -> str
unpack: extern fun(any, int?, int?) -> ...?
xpcall: extern fun(fun, fun) -> ... # (bool, ...?)
# Child modules
import coroutine
import debug
import io
import math
import os
import package
import string
import table