about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-22 00:25:22 +0100
committerBaitinq <[email protected]>2025-01-22 00:25:22 +0100
commit6d1d1355379feb3273c3634adfc50a1876c40314 (patch)
treed5302638c8569a4d0905ef1fd4ef1b4e39e6a2de /examples
parentFeature: Add support for while statements (diff)
downloadinterpreter-6d1d1355379feb3273c3634adfc50a1876c40314.tar.gz
interpreter-6d1d1355379feb3273c3634adfc50a1876c40314.tar.bz2
interpreter-6d1d1355379feb3273c3634adfc50a1876c40314.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;
 	};