The infix-dollar-reader Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The infix-dollar-reader Reference Manual

This is the infix-dollar-reader Reference Manual, version 0.3.0, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 04:04:41 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

infix-dollar-reader

Infix $ operator for reducing redundant paranthesis.

usage:

  1. load package;

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

     (syntax:use-syntax :infix-dollar)
    
  3. write your forms with infix $ notation s.t. (the fixnum $ + x 10)

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

limitation:

A symbol name which has any $ characters would cause unexpected behavior.

You should not use any $ characters in a symbol name without barrier or intern from a string.

e.g.

    (syntax:use-syntax :infix-dollar)

    (defconstant foo$- 1) ; => FOO
    ;; would be parsed as (defconstant foo(- 1))

    (defconstant |FOO$-| 1) ; => FOO$- or |FOO$-|
    ;; not be parsed a #\$ as a #\( because of barrier

    (intern "FOO$-") ; => FOO$-
    ;; #\$, $-in-a-string and $-in-a-comment are not affected

license:

infix-dollar-reader is under MIT license.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 infix-dollar-reader

Maintainer

SUZUKI Shingo

Author

SUZUKI Shingo

License

MIT

Description

Infix $ operator for reducing redundant parenthesis

Version

0.3.0

Dependency

cl-syntax

Source

infix-dollar-reader.asd (file)

Component

infix-dollar-reader.lisp (file)


Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 infix-dollar-reader.asd

Location

infix-dollar-reader.asd

Systems

infix-dollar-reader (system)

Packages

infix-dollar-reader-asd


Previous: , Up: Lisp files   [Contents][Index]

3.1.2 infix-dollar-reader/infix-dollar-reader.lisp

Parent

infix-dollar-reader (system)

Location

infix-dollar-reader.lisp

Packages

infix-dollar-reader

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

4.1 infix-dollar-reader-asd

Source

infix-dollar-reader.asd

Use List

Previous: , Up: Packages   [Contents][Index]

4.2 infix-dollar-reader

Source

infix-dollar-reader.lisp (file)

Nicknames
Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: unuse-infix-dollar &optional PRINT-NOTE

Restore whole *readtable*.
CAUTION: unuse-infix-dollar could rollback all of the changes on *readtable* after invoking enable-infix-dollar.

Package

infix-dollar-reader

Source

infix-dollar-reader.lisp (file)

Function: use-infix-dollar &optional PRINT-NOTE

Enable infix $ operator.
CAUTION: enable-infix-dollar could modify *readtable* globally.

Package

infix-dollar-reader

Source

infix-dollar-reader.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *original-readtable*

Saving original readtable

Package

infix-dollar-reader

Source

infix-dollar-reader.lisp (file)

Special Variable: syntax
Package

infix-dollar-reader

Source

infix-dollar-reader.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: infix-dollar-reader STREAM CHAR
Package

infix-dollar-reader

Source

infix-dollar-reader.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   I   L  
Index Entry  Section

F
File, Lisp, infix-dollar-reader.asd: The infix-dollar-reader<dot>asd file
File, Lisp, infix-dollar-reader/infix-dollar-reader.lisp: The infix-dollar-reader/infix-dollar-reader<dot>lisp file

I
infix-dollar-reader.asd: The infix-dollar-reader<dot>asd file
infix-dollar-reader/infix-dollar-reader.lisp: The infix-dollar-reader/infix-dollar-reader<dot>lisp file

L
Lisp File, infix-dollar-reader.asd: The infix-dollar-reader<dot>asd file
Lisp File, infix-dollar-reader/infix-dollar-reader.lisp: The infix-dollar-reader/infix-dollar-reader<dot>lisp file

Jump to:   F   I   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   F   I   U  
Index Entry  Section

F
Function, infix-dollar-reader: Internal functions
Function, unuse-infix-dollar: Exported functions
Function, use-infix-dollar: Exported functions

I
infix-dollar-reader: Internal functions

U
unuse-infix-dollar: Exported functions
use-infix-dollar: Exported functions

Jump to:   F   I   U  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
S  
Index Entry  Section

*
*original-readtable*: Internal special variables

S
Special Variable, *original-readtable*: Internal special variables
Special Variable, syntax: Internal special variables
syntax: Internal special variables

Jump to:   *  
S  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   I   P   S  
Index Entry  Section

I
infix-dollar-reader: The infix-dollar-reader system
infix-dollar-reader: The infix-dollar-reader package
infix-dollar-reader-asd: The infix-dollar-reader-asd package

P
Package, infix-dollar-reader: The infix-dollar-reader package
Package, infix-dollar-reader-asd: The infix-dollar-reader-asd package

S
System, infix-dollar-reader: The infix-dollar-reader system

Jump to:   I   P   S