summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-04 01:18:46 -0400
committerWormHeamer2025-08-04 01:18:46 -0400
commitff64edc488c5b7b44dfecfecc03fb4cc26c4da19 (patch)
treec81f267b7524748e699c962ebbcd8b364aa1f2be /test.lang
parente47ae0caca1d27057c016d904e2dc15a30310b56 (diff)
use lisp acronyms to express peephole optimizations
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang4
1 files changed, 3 insertions, 1 deletions
diff --git a/test.lang b/test.lang
index 0bfcd0a..7148cbe 100644
--- a/test.lang
+++ b/test.lang
@@ -9,5 +9,7 @@
// also single-line now
proc main(a i64, b i64) {
- return (4 + (3 * (a + 2 + b + 4) * 5) + 8) < 3
+ a := a + 1
+ b := b + 2
+ return a * b
}