summary refs log tree commit diff
path: root/examples/10.src
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 23:54:17 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 23:54:17 +0100
commit5965c25a1b32599c8b95e8713b8002e11b891ba4 (patch)
treefda0d378008c0b89ef1ff1453bd4e2a4ba80b1fe /examples/10.src
parentTokenizer: Rename NOT token to BANG (diff)
downloadinterpreter-5965c25a1b32599c8b95e8713b8002e11b891ba4.tar.gz
interpreter-5965c25a1b32599c8b95e8713b8002e11b891ba4.tar.bz2
interpreter-5965c25a1b32599c8b95e8713b8002e11b891ba4.zip
Feature: Add support for while statements
Diffstat (limited to 'examples/10.src')
-rw-r--r--examples/10.src1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/10.src b/examples/10.src
index 38e6259..428ac92 100644
--- a/examples/10.src
+++ b/examples/10.src
@@ -3,6 +3,7 @@ let main = () => {
 
 	while !(counter == 10) {
 		print(counter);
+		counter = counter + 1;
 	};
 
 	while counter == 0 {