diff options
| author | WormHeamer | 2025-08-07 00:50:01 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-08-07 00:50:01 -0400 |
| commit | 9c5d50e5371cd26d7ae8fd896dc06fa9af684949 (patch) | |
| tree | 9140ba2ba6d6be752665cfb51ffb57262c4ba38e /test.lang | |
| parent | 632f2e43d43eaae936cc0567ef18bb25f94e1bdd (diff) | |
add if statements
Diffstat (limited to 'test.lang')
| -rw-r--r-- | test.lang | 22 |
1 files changed, 4 insertions, 18 deletions
@@ -1,20 +1,6 @@ -/* comments! */ - -/* - * var f proc(i32) - * var g func(i32) i32 - * let x = g - */ - -// also single-line now - -proc fib(x i64) { - return x & 1023 -} - proc main(a, b i64) { - // let x = (a + -a) = (a xor a) - // let y = (a + a) = (a * 2) - // return (x & y & (a = a) & (a = ~a)) | ((a + a) = (a + 2)) - return a - (b + b) - a + if a > 5 { + a := a - 5 + } + return a } |
