diff options
| author | Baitinq <[email protected]> | 2025-02-10 23:41:54 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-02-10 23:41:54 +0100 |
| commit | 8a9835edd4e350260a54af79d9781d99794b4d54 (patch) | |
| tree | bcb34f4c77244c2aaf61e640e5843ec7cd209d23 /examples | |
| parent | Codegen: Fix SSA variable declaration (diff) | |
| download | pry-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.src | 3 |
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; }; |