-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrc.jade
68 lines (43 loc) · 750 Bytes
/
src.jade
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
use raylib
use GLFW.glfw3
use stdbool
fn sub(x:i32, y:i32) -> i32 {
return x - y;
}
fn voidFunction() -> void {
}
let x:f32 = 29; // TODO here make it 29.0
let st:str = "ciao";
#define COMPTIME 10;
type Point {
x:i32
y:i32
};
rec type Value {
b:bool
v:Value
}
let a = 29;
let b = 29.0;
let s = "text";
let c = 'a';
let d = true;
let e = false;
fn main() -> i32 {
let variable:i32 = sub(2, 2); // NOTE This works somehow
let x:i32 = 10;
if x > 3 {
printf("Hello World\n");
}
loop {
println!("something");
break;
}
sub(3, -1); // ANOTHER
// Comment
println!("Hello!");
return 0;
}
fn add(x:i32, y:i32) -> i32 {
return x + y;
}