summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 00:32:14 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 00:32:14 +0100
commit967dc36c30abbab9e2983568feab9bb514ab58df (patch)
treedd038d87758bfe17edba4c1ba5457b1ebbde9184 /examples
parentParser: Add support for parenthesis grouping (diff)
downloadinterpreter-967dc36c30abbab9e2983568feab9bb514ab58df.tar.gz
interpreter-967dc36c30abbab9e2983568feab9bb514ab58df.tar.bz2
interpreter-967dc36c30abbab9e2983568feab9bb514ab58df.zip
Feature: Add support for NOT unary expression
Diffstat (limited to 'examples')
-rw-r--r--examples/9.src3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/9.src b/examples/9.src
index d21ae71..f3ab389 100644
--- a/examples/9.src
+++ b/examples/9.src
@@ -1,7 +1,8 @@
 let main = () => {
 	let i = true;
+	i = !i;
 
-	if i {
+	if !i {
 		print(i);
 		return 1;
 	};