summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-22 00:25:22 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-22 00:25:22 +0100
commita04777a20e60857f880775c3c6ed23c6d1e72eca (patch)
treed5302638c8569a4d0905ef1fd4ef1b4e39e6a2de /examples
parentFeature: Add support for while statements (diff)
downloadinterpreter-a04777a20e60857f880775c3c6ed23c6d1e72eca.tar.gz
interpreter-a04777a20e60857f880775c3c6ed23c6d1e72eca.tar.bz2
interpreter-a04777a20e60857f880775c3c6ed23c6d1e72eca.zip
Feature: Add support for division and multiplication
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 1245e45..9bb3c73 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 (1 - 1 * 2) == 5 - (10 / 2) - 1 {
 		print(i);
 		return i;
 	};