Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Infix $ operator for reduce redundant paranthesis
Branch: master
Pull request Compare This branch is 10 commits behind ichimal:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
MIT-LICENSE.txt
README.md
infix-doller-reader-test.asd
infix-doller-reader-test.lisp
infix-doller-reader.asd
infix-doller-reader.lisp

README.md

infix-doller-reader

Infix $ operator for reducing redundant paranthesis.

usage:

  1. load package;

    (asdf:load-system :infix-doller-reader)
    
  2. enable to use infix $ notation;

    for REPL:

      (idoller:use-infix-doller)
    

    for source code:

      (eval-when (:compile-toplevel)
        (idoller:use-infix-doller) )
    

    CAUTION: this operation replaces current *READTABLE* with copied one.

  3. write your forms with infix $ notation s.t. (the fixnum $ + x 10)

  4. rollback *READTABLE*;

    for REPL:

      (idoller:unuse-infix-doller)
    

    for source code:

      (eval-when (:compile-toplevel)
        (idoller:unuse-infix-doller) )
    

example:

    (fun x y $ fun2 z)

This form above would be expanded to below form.

    (fun x y (fun2 z))

And also,

    (= (+ 1 2 $ * 3 4 $ + 5 6) (+ 1 2 (* 3 4 (+ 5 6)))) ; => T
Something went wrong with that request. Please try again.