about summary refs log tree commit diff
path: root/users/tazjin/rlox/examples/func.lox
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/rlox/examples/func.lox')
-rw-r--r--users/tazjin/rlox/examples/func.lox5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/tazjin/rlox/examples/func.lox b/users/tazjin/rlox/examples/func.lox
new file mode 100644
index 0000000000..d197ad1138
--- /dev/null
+++ b/users/tazjin/rlox/examples/func.lox
@@ -0,0 +1,5 @@
+fun foo(name) {
+  print("hello " + name);
+}
+
+foo("bar");