.\" In .TH, FOO should be all caps, SECTION should be 1-8, maybe w/ subsection .\" other parms are allowed: see man(7), man(1) .\" .\" This template provided by Tom Christiansen . .\" .TH INFIX 3l .SH NAME infix \- an infix reader macro for common lisp .SH SYNOPSIS .B (require :infix) .B #i"2+3" => .B 5 .B #i"sqrt(-5)" => .B #C(0.0 2.236068) .B '#i"if x .ta 2 4 .B (IF (AND (< X Y) (<= Y Z)) .br .B \t\t(SETF (F X) (+ (EXPT X 2) (EXPT Y 2))) .br .B \t(SETF (F X) (- (EXPT X 2) (EXPT Y 2)))) .DT .SH "DESCRIPTION" Provides a reader macro, #i, to allow use of infix notation in lisp programmes. This is mostly useful in heavily mathematical locations, when lisp's default prefix notation can be more verbose and confusing. .SH OPTIONS If (get\ :infix\ :dont-print-copyright) is T, then the copyright banner will not print on loading the package. .SH ERRORS All errors thrown are with ERROR; there are no subclassed conditions. .SH ENVIRONMENT (get :infix :dont-print-copyright) .br infix::*print-infix-copyright* .br infix::*operator-ordering* .SH FILES .br .nf .\" set tabstop to longest possible filename, plus a wee bit .ta \w'/usr/share/common-lisp/source/infix/infix.cl ' \fI/usr/share/common-lisp/systems/infix.system\fR \t system definition \fI/usr/share/common-lisp/source/infix/infix.cl\fR \t source file \fI/usr/lib/common-lisp/\fR \t compiled files .SH CAVEATS \fB^\fR is bitwise logical exclusive or, not exponentiation, which is \fB^^\fR, or logical negation, which is \fBnot\fR. .br All the precedence rules come back into play; \fB#i"4^^3/2"\fR returns 32, not 8. .SH DIAGNOSTICS Error messages should be self-explanatory. .SH BUGS None known .SH AUTHOR Mark Kantrowitz .br Manual page written by Christophe Rhodes