aboutsummaryrefslogtreecommitdiffstats
path: root/test/resources/program.bork
blob: 1b7717de847cacbf6124105942726fd530bb05d3 (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
/* 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 integer: ")
out( concat("your input was: " user_input "!") )

decl operand set operand 10

decl sum
set sum + as_int(user_input) operand

out( concat(user_input " + " operand " = " sum) )

"done"