blob: e6be2d5fc3fc56c58bc67cb5453172a5ea5ab139 (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
type Type {
}
native(":core:setup_type", Type)
global Type
type Null {
() {
native(":core:Null:$init")
}
}
type Int {
() {
native(":core:Int:$init")
}
}
type Float {
() {
native(":core:Float:$init")
}
}
type String {
() {
native(":core:String:$init")
}
}
type Bool {
() {
native(":core:Bool:$init")
}
}
type Array {
() {
native(":core:Array:$init")
}
fn push(this, element) {
native(":core:Array:push", this, element)
}
fn pop(this) {
return native(":core:Array:pop", this)
}
fn length(this) {
return native(":core:Array:length", this)
}
}
type Function {
() {
native(":core:Function:$init")
}
}
fn say(message) {
native(":core:say", message)
}
fn ping() {
return "Pong!"
}
global Null
global Int
global Float
global String
global Bool
global Array
global Function
global say
global ping
|