Build your Crumb programs as standalone binaries ๐.
Loaf is a Crumb program, that compiles other Crumb programs into standalone binaries. This is done by injecting the the source of your crumb programs into the Crumb interpreter's source code, compiling your scripts with the Crumb runtime.
You do not need to clone this repo to use Crumb/Loaf. Instead, follow the instructions in this template repo. Only clone this repo if you are working on Loaf itself.
Crumb is built for POSIX compliant systems, and utilizes
ioctl.handunistd.h. To use Crumb on windows, either use WSL, or use a Linux container.
First, build crumb.
chmod +x setup.sh && ./setup.shYou can now try to run Loaf on itself, bootstrapping it's own binary.
./crumb ./loaf.crumb ./loaf.crumb ./loafThis will create a loaf binary you can invoke from anywhere, on any crumb program.
./loaf ENTRY_POINT.crumb OUTPUT_BINARY_PATHTo bundle app.crumb,
./loaf app.crumb appTo bootstrap Loaf again, you can run
./loaf ./loaf.crumb ./loaf2You can also control the version of Crumb to use.
./loaf ENTRY_POINT.crumb OUTPUT_BINARY_PATH TAGLoaf will recursively traverse any directory it is run from, and make any file that ends with
.crumbavailable to theusefunction.
Built for and with the Crumb Programming language: https://github.com/liam-ilan/crumb.
- Built by Liam Ilan