summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 00:18:29 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 00:18:29 +0100
commitace95945deccfbea0214e1387de8c2806cd9de82 (patch)
tree50f0813d95bcce41636130ab82cf3b6a501a48c7 /examples
parentParser: Make additive expression left associative (diff)
downloadinterpreter-ace95945deccfbea0214e1387de8c2806cd9de82.tar.gz
interpreter-ace95945deccfbea0214e1387de8c2806cd9de82.tar.bz2
interpreter-ace95945deccfbea0214e1387de8c2806cd9de82.zip
Parser: Add support for parenthesis grouping
Diffstat (limited to 'examples')
-rw-r--r--examples/7.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/7.src b/examples/7.src
index 8e3ad60..1245e45 100644
--- a/examples/7.src
+++ b/examples/7.src
@@ -1,7 +1,7 @@
 let main = () => {
 	let i = 4;
 	
-	if i + 1 == 5 - 1 + 1 {
+	if (i - 1) == 5 - (1 + 1) {
 		print(i);
 		return i;
 	};