Sheety::CroupierGenerator
Inherits Sheety::AST < Reference < Object
Generates and registers Croupier tasks from Excel formulas
Constants
Above this many formula cells, split the task table across chunk files so the compiler stays within modest memory. Measured: chunk size 500 caps peak RSS at ~1.5GB for a 9900-cell sheet (vs ~13.8GB single-file).
Constructors
Class methods
Instance methods
Add a formula to be converted to a task
Generate Crystal source code for all tasks.
Returns a GeneratedSource: the entrypoint program plus, for large sheets,
auxiliary chunk files the entrypoint requires. Callers write the entrypoint
to their chosen path and the aux files into the same directory.
chunk_prefix names the chunk files (e.g. "abc123" -> "abc123_tasks_0.cr")
so sheets sharing a tmp dir don't collide; required only when splitting.
Set the original filename (for save functionality)
Human-readable per-formula problems found by the last generate_source call ("Sheet1!B2: unsupported range ..."). Exposed so callers and specs can assert on what users are warned about.