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 000000000000..d197ad11383f
--- /dev/null
+++ b/users/tazjin/rlox/examples/func.lox
@@ -0,0 +1,5 @@
+fun foo(name) {
+  print("hello " + name);
+}
+
+foo("bar");