ol(1)
π NAME π
okay bestie, meet ol(1) β literally an Owl Lisp compiler and interpreter, no cap. π¦β¨
π¦ SYNOPSIS π¦
ol [options] [path] ...
β¨ DESCRIPTION β¨
Owl Lisp is a purely functional variant of R7RS Scheme β yes, purely functional, main character energy fr fr. ol can be used to evaluate programs interactively and compile them to native binaries via C. Slay. π
π OPTIONS π
okay so this program follows the usual GNU command line syntax, with long options starting with two dashes (--). Hereβs a summary of essential command-line flags, bestie β the complete list is shown on the help page. π
-h,--helpβ show summary of options. iconic.-v,--versionβ show version of program. π«Ά-e,--evalstring β evaluate the string, print its value, and exit with0unless errors occurred. β¨-t,--teststring β evaluate the string and exit with1if the value is#false,0if itβs true, or126if there is an error. itβs giving test-runner realness π-o,--outputoutput-file β compile the given file to fasl or C code, and save the result to the given output file. π₯-r,--runpath β load the file silently, and call the last value with the remaining command line arguments. πΈ-x,--output-formatformat β choose whatolshould compile the given input to. valid options are currentlycandfasl. this is normally deduced from the file suffix given in-o, and is thus not usually needed. lowkey optional π-O0,-O1,-O2β write plain bytecode, compile some common functions to C or everything possible. these only make sense when compiling to C. π₯-l,--loadpath β resume execution of program state saved with suspend. π§
π EXAMPLES π
Make a simple binary
$ echo '(lambda (args) (for-each print args))' > test.l
$ ol -o test.c test.l
$ gcc -o test test.c
$ ./test foo bar
Compile in a pipe
$ echo '(lambda (args) (print (cons "I got " args)))' | ol -x c
-o - | gcc -x c -o test - && ./test 11 22 33
Loading vs running files
$ echo '(print "Hello, world!")' > test.l
$ ol test.l
Hello, world!
$ echo '(lambda (args) (print "Hello, world!"))' > test.l
$ ol --run test.l arg1 arg2 arg3
Hello, world!
π«Ά SEE ALSO π«Ά
go peek at these too, bestie: ovm(1), gcc(1), scheme48(1). π
π AUTHOR π
Owl Lisp and this manual page were written by Aki Helin <aki.helin@iki.fi>. π
okay thatβs the whole ol(1) page, bestie β signing off from the General Commands Manual, dated Jan 12, 2021, and yes the vibes are immaculate. stay slay π
β¨
π¦ where this page comes from
- arch rolling: owl-lisp 0.2.2-2 Β· MIT
- nixos 26.05: owl-lisp 0.2.2
- nixpkgs unstable: owl-lisp 0.2.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms