about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-15 23:17:01 +0100
committerBaitinq <[email protected]>2025-01-15 23:27:55 +0100
commite9c9f4c407e38eccd9c7921b50a5e7f4d529b343 (patch)
tree1960c6e6646a9f8fce94cf3821909a9788a2992b /examples
parentAdd basic support for parsing functions (diff)
downloadinterpreter-e9c9f4c407e38eccd9c7921b50a5e7f4d529b343.tar.gz
interpreter-e9c9f4c407e38eccd9c7921b50a5e7f4d529b343.tar.bz2
interpreter-e9c9f4c407e38eccd9c7921b50a5e7f4d529b343.zip
Parser: clean
Diffstat (limited to 'examples')
-rw-r--r--examples/4.src6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/4.src b/examples/4.src
index 25dcc7a..ddbc5d4 100644
--- a/examples/4.src
+++ b/examples/4.src
@@ -1,6 +1,8 @@
 let print_one = () => {
 	print(1);
-	return 1;
+	return 0;
 };
 
-print_one();
+let y = print_one();
+
+print(y);