aboutsummaryrefslogtreecommitdiff
path: root/test.hgn
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-07-22 22:38:01 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-07-22 22:38:01 +0200
commit8b2323108f484c259d863e68a23f9766e658c07d (patch)
treefc36a437a3608bc5b9e66d60a7ab295b1ded06d6 /test.hgn
parent86532befde8205b440ae0d630fa8feb94afe27da (diff)
downloadhuginn-8b2323108f484c259d863e68a23f9766e658c07d.tar.gz
begin implementing procedure calls
the register allocator does not consider the fact that called procedures probably clobber t-registers. also, the way i refer to the built in functions is cursed. it barely works now and won't when you can define procedures
Diffstat (limited to 'test.hgn')
-rw-r--r--test.hgn15
1 files changed, 0 insertions, 15 deletions
diff --git a/test.hgn b/test.hgn
deleted file mode 100644
index 2aec1a8..0000000
--- a/test.hgn
+++ /dev/null
@@ -1,15 +0,0 @@
-let x = 10
-let y = 0
-print(x > y)
-while y < 3 {
- x = x + x
- y = y + 1
-}
-if x {
- # let x = read_int(0)
- # print(18446744073709551615)
- x = x + x
-} else {
- x = 69
-}
-print(x)