An attempt at a Lua 5.1 implementation in Zig.
Goals, in order of priority:
..
, ...
==
, >=
, <=
, ~=
[[
))--
and --[[
)4324bd0
for more details)strtod
-compatible number parsing implementationIt’s what I’m most familiar with, and I’m also assuming that 5.1 is simpler internally than more recent Lua versions.
zig build
to build zua.exezig build test
to build & run the main test suitezig build run
to build & run zua.exe (does nothing right now)zig build lua51_tests
to run tests on the PUC Lua 5.1 test files (currently it just tests parsing them)zig build fuzzed_lex
to run lexer tests on a large set of inputs/outputs generated by fuzzing-luazig build bench_lex
to run a benchmark of the lexer (this benchmark needs improvement)zig build fuzzed_strings
to run string parsing tests on a set of inputs/outputs generated by fuzzing-lua