The repository only shipped a spreadsheet demo, so there was no example of an
interactive, stateful program. LuaPaint keeps the whole editor in Lua - canvas
primitives with undo, palette, tools and a scriptable session - and its tests
run without a terminal.
The demo folder only had a toy todo list, which did not show that a
non-trivial application can be written in Lua and shipped as a single
compiled binary. This adds LuaSheet: a tokenizer, a formula parser, a
lazy evaluator with cycle detection, range-aware builtin functions,
ASCII/CSV rendering and a benchmark, all driven by a CLI entry point.
Everything stays plain Lua under Demo/: no C++ change is needed to
build or run it.
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.
Calling the compiled modules required a CMake project and a C++ main, which
contradicted the point of the compiler. A Lua entry script now prints the same
report, and the modules sit next to it so require resolves without any flag.
The gitignore came from a generic C++ template in which almost no pattern
applies here, and build/ still held files from the removed example project.
The generated luacpp-build directory is now ignored too.
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.
The example duplicated what Demo already covers, and the run mode needs the
runtime include path and Lua link flags at execution time, so they are baked in
at configure time.
A separate CMake project using the compiler as a subproject shows the real
workflow: namespaced facades, require between compiled modules and dynamic
access from C++.
Compiling the compiler, the example and the demo by hand is error prone, so a
single script keeps the whole flow reproducible and ignores build outputs.
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.