From 8f84c00978dc05007873a9fe1de6a18511dc3cf8 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 28 Jun 2016 21:09:43 +0300 Subject: Restructure project for use with maven --- src/test/com/jantuomi/borker/resources/funcdef.bork | 8 ++++++++ src/test/com/jantuomi/borker/resources/program.bork | 13 +++++++++++++ src/test/com/jantuomi/borker/resources/test.file | 4 ++++ 3 files changed, 25 insertions(+) create mode 100644 src/test/com/jantuomi/borker/resources/funcdef.bork create mode 100644 src/test/com/jantuomi/borker/resources/program.bork create mode 100644 src/test/com/jantuomi/borker/resources/test.file (limited to 'src/test/com/jantuomi/borker/resources') diff --git a/src/test/com/jantuomi/borker/resources/funcdef.bork b/src/test/com/jantuomi/borker/resources/funcdef.bork new file mode 100644 index 0000000..8412129 --- /dev/null +++ b/src/test/com/jantuomi/borker/resources/funcdef.bork @@ -0,0 +1,8 @@ +/* kommentti juu jee */ + +func my_func x y as + + x 1 + - y x +end + +my_func(1 2) \ No newline at end of file diff --git a/src/test/com/jantuomi/borker/resources/program.bork b/src/test/com/jantuomi/borker/resources/program.bork new file mode 100644 index 0000000..7034625 --- /dev/null +++ b/src/test/com/jantuomi/borker/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 diff --git a/src/test/com/jantuomi/borker/resources/test.file b/src/test/com/jantuomi/borker/resources/test.file new file mode 100644 index 0000000..3b723c0 --- /dev/null +++ b/src/test/com/jantuomi/borker/resources/test.file @@ -0,0 +1,4 @@ +### +This test file starts and +ends in three # symbols +### \ No newline at end of file -- cgit v1.3