Skip to content

A reader macro that enables prefix notation in common lisp.

License

Notifications You must be signed in to change notification settings

timeolord/infix-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A reader macro that enables prefix notation in common lisp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published