diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2025-07-22 22:38:01 +0200 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2025-07-22 22:38:01 +0200 |
commit | 8b2323108f484c259d863e68a23f9766e658c07d (patch) | |
tree | fc36a437a3608bc5b9e66d60a7ab295b1ded06d6 /test.hgn | |
parent | 86532befde8205b440ae0d630fa8feb94afe27da (diff) | |
download | huginn-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.hgn | 15 |
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) |