-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyntax.txt
More file actions
24 lines (24 loc) · 1.02 KB
/
syntax.txt
File metadata and controls
24 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
print to terminal --> print "hello world"
vars --> new var [name] = [value]
math operators: + --> new var [name] = [var1] + [var2]
math operators: - --> new var [name] = [var1] - [var2]
math operators: * --> new var [name] = [var1] * [var2]
math operators: / --> new var [name] = [var1] / [var2]
math operators: % --> new var [name] = [var1] % [var2]
input --> in con [var to store the input to] [type(int or str)]
--> (alternative: in console [var] [type])
functions --> func [name] [params(comma-separated)]
...function body...
endfunc
function call --> call [name]
loops --> loop do
...loop body...
quit_loop
while loops --> while [condition]
...while body...
}
if statements --> if [condition]
...if body...
}
sleep --> sleep [milliseconds]
break loop --> quit_loop