You can either download and install the source package, or just compile the pre-compiled C version of the repl/compiler and use it directly without further installation. The pre-compiled C version is suitable for quick testing and compilation of projects to C without a lengthy build. The source package takes a while to build, but the interpreter will be a bit faster. Both versions produce equal compiled code.
Precompiled C: ol-0.1.16.c.gz
Example usage with make
:
OWLVER=0.1.16
OWLURL=https://github.com/owl-lisp/owl/releases/download/v$(OWLVER)
program: program.c
cc -O2 -o bin/program program.c
program.c: program.scm bin/ol
bin/ol -O2 -o program.c program.scm
bin/ol:
test -f ol-$(OWLVER).c.gz || wget $(OWLURL)/ol-$(OWLVER).c.gz
gzip -d < ol-$(OWLVER).c.gz > ol-$(OWLVER).c
mkdir -p bin
cc -O2 -o bin/ol ol-$(OWLVER).c