diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2016-07-26 19:43:13 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2016-07-26 19:47:14 +0300 |
| commit | 8234767203a7f673b12c8f51b83762c511274366 (patch) | |
| tree | 3dfa221a1bc0c94860363a74bdaf4c3dbb23226d /src/test/com/jantuomi/tunkki/resources/program.bork | |
| parent | 9c189c2d1ef35184ec9a9d08bdeeb52936902867 (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.bork | 13 |
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 |
