summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-22 00:30:28 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-22 00:30:59 +0100
commit596cfe8b9d7319085465bbd134247e2967652f6f (patch)
tree106c0926321316cac67d57ea94df8444fd0b3f8f /examples
parentFeature: Add support for division and multiplication (diff)
downloadinterpreter-596cfe8b9d7319085465bbd134247e2967652f6f.tar.gz
interpreter-596cfe8b9d7319085465bbd134247e2967652f6f.tar.bz2
interpreter-596cfe8b9d7319085465bbd134247e2967652f6f.zip
Feature: Add support for negation
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 9bb3c73..9846af5 100644
--- a/examples/7.src
+++ b/examples/7.src
@@ -1,7 +1,7 @@
 let main = () => {
 	let i = 4;
 	
-	if (1 - 1 * 2) == 5 - (10 / 2) - 1 {
+	if (1 - -1 * 2) == 5 - (10 / 2) + 3 {
 		print(i);
 		return i;
 	};