aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jantuomi/tunkki/resources/program.bork
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2016-07-26 19:43:13 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2016-07-26 19:47:14 +0300
commit8234767203a7f673b12c8f51b83762c511274366 (patch)
tree3dfa221a1bc0c94860363a74bdaf4c3dbb23226d /src/test/com/jantuomi/tunkki/resources/program.bork
parent9c189c2d1ef35184ec9a9d08bdeeb52936902867 (diff)
Rename project to tunkki
Diffstat (limited to 'src/test/com/jantuomi/tunkki/resources/program.bork')
-rw-r--r--src/test/com/jantuomi/tunkki/resources/program.bork13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/com/jantuomi/tunkki/resources/program.bork b/src/test/com/jantuomi/tunkki/resources/program.bork
new file mode 100644
index 0000000..7034625
--- /dev/null
+++ b/src/test/com/jantuomi/tunkki/resources/program.bork
@@ -0,0 +1,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" \ No newline at end of file