A compiler from Lua 5.4 bytecode to Webassembly
Ok I'm not insane just foolish
Vendor fennel interp, and notes on unit tests.

heads

tip
browse log

clone

read-only
https://hg.sr.ht/~icefox/distraction
read/write
ssh://hg@hg.sr.ht/~icefox/distraction

#What is this

This is an attempt to write a compiler from Lua 5.4 bytecode to webassembly.

Why? As the name implies, to have something to do.

#Building/running

Runs with Fennel 1.2.0 or maybe something else.

This uses integer math and bitops for opcodes, so requires Lua >= 5.3 to run. Probably assumes it's running on a 64-bit machine, so a Lua integer is 64 bits. This may or may not matter.

#Todo

https://github.com/silentbicycle/lunatest Example usage: https://git.sr.ht/~technomancy/squirtleci/tree/main/item/test/init.fnl

#References

#License

Mozilla Public License 2.0