summary refs log tree commit diff
path: root/examples/4.src
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-16 00:36:57 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-16 00:36:57 +0100
commitddb118b488da257bb4b4db5e79881aedd62d5b8a (patch)
treec0e21c5abdc65187c234fb12a38a1644865d33ff /examples/4.src
parentParser: clean (diff)
downloadinterpreter-ddb118b488da257bb4b4db5e79881aedd62d5b8a.tar.gz
interpreter-ddb118b488da257bb4b4db5e79881aedd62d5b8a.tar.bz2
interpreter-ddb118b488da257bb4b4db5e79881aedd62d5b8a.zip
Evaluator: Start working on new function-capable evaluator
Diffstat (limited to 'examples/4.src')
-rw-r--r--examples/4.src9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/4.src b/examples/4.src
index ddbc5d4..6e639a8 100644
--- a/examples/4.src
+++ b/examples/4.src
@@ -3,6 +3,11 @@ let print_one = () => {
 	return 0;
 };
 
-let y = print_one();
 
-print(y);
+let main = () => {
+	let y = print_one();
+
+	print(y);
+
+	return y;
+};