summaryrefslogtreecommitdiff
path: root/examples/comments.fy
diff options
context:
space:
mode:
Diffstat (limited to 'examples/comments.fy')
-rw-r--r--examples/comments.fy21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/comments.fy b/examples/comments.fy
new file mode 100644
index 0000000..216e41b
--- /dev/null
+++ b/examples/comments.fy
@@ -0,0 +1,21 @@
+#*
+ * Simple examples how to write comments
+ *#
+
+# This is a single lined comment
+
+say 1 + 1; # This is a comment at the end of the line
+
+say 1 #* This is an embedded comment *# + 1;
+
+#* This is
+ a
+ multiline
+ comment *#
+
+#*
+ * This is
+ * a nicer looking
+ * multiline comment
+ *#
+