Commit Graph
3 Commits
Author SHA1 Message Date
BlackAngelTV 1bfbe79cba feat(cli): create a build directory next to the Lua sources
The generated files landed in a luacpp-build folder named after the script, so
the executable could not be found where a build directory is usually expected.
The default layout is now build/<script> for the binary and build/src for the
generated sources, and the path is printed relative to the working directory.
2026-11-18 08:48:05 +01:00
BlackAngelTV 274daa7b1d feat(cli): add a run mode that compiles and executes a Lua script
Writing C++ or CMake to try a Lua file makes the compiler hard to evaluate, so
one command now transpiles the script and its sibling modules, links them and
runs the result. Literal require calls resolve against the compiled modules.
2026-11-18 08:48:05 +01:00
BlackAngelTV 517ed0bf4d feat(compiler): add a Lua 5.4 to C++ module transpiler
Each Lua module becomes a header/source pair exposing a C++ namespace, so Lua
code can be linked and consumed like any C++ package while keeping the exact
semantics of the official 5.4 VM.
2026-11-18 08:48:05 +01:00