about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-02-10 23:41:54 +0100
committerBaitinq <[email protected]>2025-02-10 23:41:54 +0100
commit8a9835edd4e350260a54af79d9781d99794b4d54 (patch)
treebcb34f4c77244c2aaf61e640e5843ec7cd209d23 /examples
parentCodegen: Fix SSA variable declaration (diff)
downloadpry-lang-8a9835edd4e350260a54af79d9781d99794b4d54.tar.gz
pry-lang-8a9835edd4e350260a54af79d9781d99794b4d54.tar.bz2
pry-lang-8a9835edd4e350260a54af79d9781d99794b4d54.zip
Codegen: Implement while statement and fix addition
Diffstat (limited to 'examples')
-rw-r--r--examples/6.5.src3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/6.5.src b/examples/6.5.src
index 9aa1cac..9b8ee89 100644
--- a/examples/6.5.src
+++ b/examples/6.5.src
@@ -1,7 +1,8 @@
 let main = () => {
 	let x = 1;
 	if x == 1 {
-		x = 2;
+		x = 2 + 1;
+		print(x);
 	};
 	return x;
 };