infix-reader

2022-11-07

A reader macro to allow for infix syntax with { ... }

Upstream URL

github.com/timeolord/infix-reader

Author

Allan Wei <timeolord6677@gmail.com>

License

Unlicence
README

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)".

Dependencies (0)

    Dependents (0)

      • GitHub
      • Quicklisp