hooligan is yet another tiny self-hosted C compiler by @tychy and @yokonao.
Shell script for developers(hcli) and shared object file(libhooligan.so) are placed in bin directory.
You have to add bin directory to PATH and LD_LIBRARY_PATH.
We recommend you use direnv.
You can use .envrc.sample.
Plese run cp .envrc.sample .envrc.
It is require to install shellspec for testing
curl -fsSL https://git.io/shellspec | sh
Or, refer to the link
Run simply shellspec command for testing
shellspec
// display help
hcli -h
// compile specified files and output assembly code
hcli src a.c
// compile and assembly specified files and execute
hcli exec a.c
// generate 2nd gen compiler
make selfhost
// run tests using 2nd gen compiler
hcli test -g 2