-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.bb
113 lines (74 loc) · 1.14 KB
/
main.bb
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
423;
print("Hello");
print("Escaped\"String");
print("Multi", 42, "Params");
foo := 42;
foo = 12;
baz := "Hello";
baz = "World";
qux := 42;
quux :: 999;
bar :: "Hello, World!";
print(foo);
print(bar);
math :: 42 + 84 * 300;
x := 42;
y := 12 + 84;
y = x * y;
print(x, y);
print(x + y);
{
foo :: 42 + 84;
bar :: 42 * foo + 18;
print(bar - foo);
print(bar - foo, bar + foo);
print(bar * foo, bar / foo);
}
batch {
@rem HELLO
}
batch {{
@echo "}"
}}
p :: print;
batch{echo %RANDOM%}
{
insideblock := 400;
print(insideblock);
}
batch {@if "%foo%" GEQ "100" goto :poop}
print("Never prints");
batch {:poop}
print("LOL");
if (foo == 42) {
print("Yes");
}
if (foo == 84) {
print("Yes");
} else {
print("No");
}
ding :: 42 == 42;
print(ding);
if (ding) {
print("Yuppers");
}
{
foo := 42;
while (foo != 50) {
bar := 42;
foo = foo + 1;
bar = foo + 1;
foo = foo + 1;
print("foo", foo);
}
}
add :: (a, b) {
return a + b;
};
print(add(1, 2));
benis123 :: 1337;
math1 :: 2*3-3/3-1+42 + 84 * 300;
{
math2 :: 2*3-3/3-1+42 + 84 * 300;
}