aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jantuomi/tunkki/resources/program.bork
blob: 703462531e3fe7c7f75e8696b79b3404467dd039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* get an integer from the user */
decl lhs decl rhs
set lhs in("give an integer: ")
set rhs in("give another: ")

/* add the inputs together */
decl sum
set sum + as_int(lhs) as_int(rhs)

/* print the sum */
out( concat(lhs " + " rhs " = " sum) )

"done"