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 further
installation. 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.20.c.gz
A quick test without installation:
$ curl https://gitlab.com/owl-lisp/owl/uploads/38d13ea55860be90b8c0a4519810c6d5/ol-0.1.20.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/38d13ea55860be90b8c0a4519810c6d5/ol-0.1.20.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