summaryrefslogtreecommitdiffstats
path: root/src/examples/example.ft
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/example.ft')
-rw-r--r--src/examples/example.ft15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/examples/example.ft b/src/examples/example.ft
new file mode 100644
index 0000000..4a4981a
--- /dev/null
+++ b/src/examples/example.ft
@@ -0,0 +1,15 @@
+program example
+int ::test
+int::testtwo
+test=5
+testtwo=7
+int::testthree
+testthree=add(test,testtwo)
+print*,testthree
+end program example
+
+function int add(int a, int b)
+int::value
+value=a+b
+return value
+end \ No newline at end of file