outer-parentheses-free-repl
outer-parentheses-free-repl (OPFR) lets you input the outermost s-exp into your REPL without having to surround it with parentheses.

This short example compares the syntaxes. First, normal Common Lisp:

> (+ 1 2)
3
> (defvar x 34)
X
> (defvar y 25)
Y
> (expt x y)
193630125104980427932766033374162714624
> (expt x (- y 12))
81138303245565435904
>

Now, exactly the same sequence of operations using OPFR syntax:

opfr> + 1 2
3
opfr> defvar x 34
opfr> defvar y 25
opfr> expt x y
193630125104980427932766033374162714624
opfr> expt x (- y 12)
81138303245565435904
opfr>

Original source: http://rpw3.org/hacks/lisp/opfr.lisp

There is an updated repository at: git://git.feelingofgreen.ru/opfr

License: BSD


Topics: convenience library development