summaryrefslogtreecommitdiff
path: root/examples/io.fy
diff options
context:
space:
mode:
Diffstat (limited to 'examples/io.fy')
-rw-r--r--examples/io.fy13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/io.fy b/examples/io.fy
new file mode 100644
index 0000000..fda514d
--- /dev/null
+++ b/examples/io.fy
@@ -0,0 +1,13 @@
+#*
+ * Simple I/O examples. Currently only output is supported.
+ *#
+
+# Print out 10 followed by a newline
+say 10;
+
+# Print out 20 without a newline followed
+put 20;
+
+# Print out a newline
+ln;
+