-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.leaf
More file actions
58 lines (47 loc) · 701 Bytes
/
main.leaf
File metadata and controls
58 lines (47 loc) · 701 Bytes
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
void func foo(float b) {
float a = 256
// test comment 1
+ b;
string c = "Hello,
\"Foliage\"!"
;
a = 34.0;
}
// test comment 2
string func bar(int a, string b) {
// test comment 3
float c = 1.5 + 3. + 0.5 + 5;
int d = (
// test comment 4
(2 + 4)
+ 8
) + 16 + 32;
if c < d {
int e = ((d + 128) * 256) - 4;
// string f = "e";
bool f = true; // - false;
}
return b;
} // test comment 5
struct Qux {
Bax b,
}
struct Bax {
Nox n,
}
struct Nox {
int q,
}
void func baz() {
bool a = false;
string b = bar(64, bar(16, "trees"));
bool c = !a;
if b == "trees" {
int i = 4;
} else if b == "leaves" {
int i = 8;
} else {
console.log("Invalid value!");
}
}
/**/