aboutsummaryrefslogtreecommitdiffstats
path: root/test/resources/program.bork
blob: 0901bd7cbc4b48b1c898f893bbe6a455d6da50cf (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
/* Test program */

/*
func sum x y as
    + x y
end

decl x decl y
set x 10
set y 20

sum(x y)
*/

decl user_input
set user_input in("give input: ")
out( concat("your input was: " user_input "!") )

decl var
set var true

if var then
    out("var on tosi!")
end

if not var then
    out("var on epatosi!")
end

"done"