You can either download and install the full source package, or just compile the pre-compiled small C version of the repl/compiler and use it directly without furtherinstallation. The pre-compiled C version is suitable for quick testing and compilation of projects to C without a lengthy full Owl build. The source package takes a while to build, but the interpreter will be a bit faster. Both versions produce equal compiled code.
Precompiled small Owl: ol-0.1.21.c.gz
A quick test without installation:
$ curl https://gitlab.com/owl-lisp/owl/uploads/92375620fb4d570ee997bc47e2f6ddb7/ol-0.1.21.c.gz \
| gzip -d | cc -x c -O -o ol -
$ ./ol
You see a prompt.
> (+ 1 2)
3
Example usage with make without a full build:
Makefile:
OWLURL=https://gitlab.com/owl-lisp/owl/uploads/92375620fb4d570ee997bc47e2f6ddb7/ol-0.1.21.c.gz
program: program.c
cc -O2 -o program program.c
program.c: program.scm ol
./ol -O2 -o program.c program.scm
program.scm:
echo '(lambda (args) (print args) 0)' > program.scm
ol:
test -f ol.c || curl $(OWLURL) | gzip -d > ol.c
cc -O2 -o ol ol.c