_
af49dc68be
📝 doc
2023-09-27 14:06:54 -05:00
_
2d309c37bf
🐛 bug: spaces in filename
2023-09-27 14:05:03 -05:00
_
57992e6bd4
📝 doc: license
2023-09-27 14:03:21 -05:00
_
5c4a545369
📝 doc: roadmap
2023-09-27 13:58:37 -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
_
062c6e6a2d
🐛 bug: fix loader bug
2023-09-26 23:19:12 -05:00
_
2f676adc19
⭐ FizzBuzz with some caveats
2023-09-26 22:45:41 -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
_
0d5e1098bc
✅ test: found a bug in my tables impl
2023-09-26 20:47:47 -05:00
_
1d813b0f44
✅ test: add tables test
2023-09-26 20:41:47 -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
_
79e9df852c
♻️ refactor: remove unused fn
2023-09-26 16:50:29 -05:00
_
448ecc08d2
♻️ refactor: extract module
2023-09-26 16:48:01 -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
_
693efa47bd
impl Hash for Value
2023-09-26 14:38:38 -05:00
_
8d80ebc052
⭐ add integers
2023-09-26 14:23:57 -05:00
_
e87265373c
🐛 bug: shrank the Value size to 16 bytes
...
This is a little pre-mature, since it's still in the "make it work"
phase of "make it work, make it fast, make it pretty".
But it was bugging me, and I'd have to ditch the raw strings and vecs
some day to add a GC anyway.
2023-09-26 14:10:57 -05:00
_
f29eaac1d0
✅ test: measure size of my Value compared to PUC Lua
...
(mine's bigger sadly, like 40 bytes)
2023-09-26 14:00:11 -05:00
_
bc15781457
🐛 bug: fix up printing to mostly match PUC Lua
...
The numbers are still off, since I didn't separate floats and ints yet
2023-09-26 13:46:01 -05:00
_
7b1fb49775
use luac in `main`
2023-09-26 13:33:59 -05:00
_
d9469b4440
♻️ refactor: invoke luac during tests so I don't have to version artifacts
2023-09-26 12:04:17 -05:00
_
0d88653c21
⭐ the nested functions thing is working, though I wish I didn't have to use recursion
2023-09-25 03:05:00 -05:00
_
3870dc2c02
🎨 rebrand as LunarWaveVM
2023-09-25 01:59:18 -05:00
_
4fd412b415
🚧 wip: I'm not handling nested functions in luac files properly
...
will fix soon
2023-09-25 01:57:57 -05:00
_
1518781753
🚧 wip: got the closure test working
2023-09-25 00:23:53 -05:00
_
543dab360b
♻️ refactor: trying to fix OP_RETURN so it can close over values
2023-09-24 22:49:00 -05:00
_
44d065d6dd
⭐ main now runs a luac file directly. No more hard-coded instructions.
2023-09-24 22:14:08 -05:00
_
c718ba67cf
⭐ make a luac loader sufficient for what I've implemented
2023-09-24 22:10:10 -05:00
_
81efebdda2
⭐ allow calling closures
2023-09-24 19:47:17 -05:00
_
a2c91757cf
🚨 clippy pass
2023-09-24 17:42:56 -05:00
_
89c3b6e0ca
♻️ refactor: split out tests and state module
2023-09-24 17:40:45 -05:00
_
8a2807f879
✅ another test
2023-09-24 17:34:38 -05:00
_
eb5a1947a1
✅ extract unit test
2023-09-24 16:57:12 -05:00
_
8c70469276
♻️ refactor
2023-09-24 16:34:28 -05:00
_
b07de4810d
Lua virtual machine in Rust, why the heck not.
2023-09-24 16:16:10 -05:00