aboutsummaryrefslogtreecommitdiffstats
path: root/test/resources/program.bork
blob: 81599396d57748fc8b14705806d9c1291613a506 (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( + + "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"