_
57486f7a65
🐛 bug: fma test passes with a hack
...
So closures are kinda working, but I'm probably missing some edge cases.
2023-09-29 17:44:54 -05:00
_
2a0e02aec4
✅ test: closure passing again, fma still not
2023-09-29 17:25:54 -05:00
_
24d576879b
make Debug print easier to read
2023-09-29 17:17:53 -05:00
_
f0d4f25cec
implement a couple more opcodes fighting the closure issue
2023-09-29 16:15:00 -05:00
_
4da634a2aa
🚧 wip: working on closures / upvalues
2023-09-28 01:31:23 -05:00
_
96c82c27c8
🐛 bug: fix long string loading and int adding
...
Long strings didn't work before because I hadn't implemented Lua's varint
decoding. It's an easy translation from the original C.
Int adding previously created a float because I always coerced to float.
Also an easy fix.
2023-09-28 00:27:05 -05:00
_
bebc96916b
⭐ allow Lua to call native Rust functions
...
And Value::BogusPrint is gone. So the only Bogus remaining is closures.
2023-09-27 01:46:53 -05:00
_
5ab30ac5b4
♻️ refactor: remove special types BogusArg and BogusEnv
...
This is a milestone towards actually implementing all of Lua.
2023-09-26 23:19:33 -05:00
_
9811d265f6
⭐ for loops with integer counters counting up only
2023-09-26 22:34:47 -05:00
_
fcfd9397ff
🐛 bug: switch to RefCell so some more of the tables tests will pass
2023-09-26 22:03:37 -05:00
_
9d29aeb43b
⭐ tables are working okay
...
Still missing a lot of stuff. And I'm pretty sure the Rc handling code
is totally wrong.
And they don't have the Lua 5.0 optimization of an internal array,
but that's probably easy to put in.
2023-09-26 20:31:00 -05:00
_
5466e6ec56
♻️ refactor: make register access easier to read
2023-09-26 16:45:04 -05:00
_
2bd1ff3d59
♻️ refactor impl Display for Value
2023-09-26 15:57:23 -05:00
_
72b2d6e656
⭐ can create an empty table
2023-09-26 15:49:12 -05:00
_
e12d749c7c
♻️ refactor: extract value module
2023-09-26 14:41:10 -05:00