about summary refs log tree commit diff
path: root/examples/2.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-16 22:10:36 +0100
committerBaitinq <[email protected]>2025-01-16 22:10:36 +0100
commit9049f78e677fdac4992d7a1024224cd537b9904a (patch)
tree3f89006b69ef3732cb4d969a03e481666c8e0e61 /examples/2.src
parentEvaluator: Start working on new function-capable evaluator (diff)
downloadpry-lang-9049f78e677fdac4992d7a1024224cd537b9904a.tar.gz
pry-lang-9049f78e677fdac4992d7a1024224cd537b9904a.tar.bz2
pry-lang-9049f78e677fdac4992d7a1024224cd537b9904a.zip
Get function calls kind of working :)
Diffstat (limited to 'examples/2.src')
-rw-r--r--examples/2.src10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/2.src b/examples/2.src
index da99740..561d626 100644
--- a/examples/2.src
+++ b/examples/2.src
@@ -1,5 +1,9 @@
-let test = 1922;
+let main = () => {
+	let test = 1922;
 
-test = 7;
+	test = 7;
 
-print(test);
+	print(test);
+
+	return test;
+};