summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2025-01-16 22:27:29 +0100
committerManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2025-01-16 22:27:29 +0100
commitae8624e160eaf0d9805d9c1d2c834afd41b10433 (patch)
treef299c2c779758029daa2d519ffce079c767d38c8 /examples
parentGet function calls kind of working :) (diff)
downloadinterpreter-ae8624e160eaf0d9805d9c1d2c834afd41b10433.tar.gz
interpreter-ae8624e160eaf0d9805d9c1d2c834afd41b10433.tar.bz2
interpreter-ae8624e160eaf0d9805d9c1d2c834afd41b10433.zip
Evaluator: variables as values
Diffstat (limited to 'examples')
-rw-r--r--examples/4.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/4.src b/examples/4.src
index 6e639a8..0dd81ae 100644
--- a/examples/4.src
+++ b/examples/4.src
@@ -1,11 +1,11 @@
 let print_one = () => {
 	print(1);
-	return 0;
+	return 4;
 };
 
 
 let main = () => {
-	let y = print_one();
+	let y = print_one() + 2;
 
 	print(y);