infix-reader
2022-11-07
A reader macro to allow for infix syntax with { ... }
Upstream URL
Author
Allan Wei <timeolord6677@gmail.com>
License
Unlicence
infix-reader
A reader macro that enables infix notation in Common Lisp.
Installation
(ql:quickload :infix-reader)
Usage
(infix-reader:enable-infix-reader) {1 + 2} ; 3 {1 + {5 + 2}} ; 8 {x defvar 12} ; X (infix-reader:disable-infix-reader)
Notes
The macro only works with 2 arguments, to prevent issues with precident. Essentially all it does is parse "{1 + 2}" into "(+ 1 2)".