about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-21 00:10:04 +0100
committerBaitinq <[email protected]>2025-01-21 00:10:04 +0100
commit630d3082c5b6632e9dfb5d3f518d638b6201c310 (patch)
tree246a49681855671b9f57f85712e22fb0ad298d25 /examples
parentExample: Add example for while loop (diff)
downloadpry-lang-630d3082c5b6632e9dfb5d3f518d638b6201c310.tar.gz
pry-lang-630d3082c5b6632e9dfb5d3f518d638b6201c310.tar.bz2
pry-lang-630d3082c5b6632e9dfb5d3f518d638b6201c310.zip
Parser: Make additive expression left associative
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 3bb1b91..8e3ad60 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;
 	};