GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing clojure.github.io — clojure.tools.macro - tools.macro 0.1.6-SNAPSHOT API documentation API for clojure.tools.macro - tools.macro 0.1.6-SNAPSHOT (in development)by Konrad HinsenFull namespace name: clojure.tools.macro OverviewProject home page is https://github.com/clojure/tools.macro/
Local macros and symbol macros Local macros are defined by a macrolet form. They are usable only inside its body. Symbol macros can be defined globally (defsymbolmacro) or locally (symbol-macrolet). A symbol macro defines a form that replaces a symbol during macro expansion. Function arguments and symbols bound in let forms are not subject to symbol macro expansion. Local macros are most useful in the definition of the expansion of another macro, they may be used anywhere. Global symbol macros can be used only inside a with-symbol-macros form. Public Variables and FunctionsdefsymbolmacromacroUsage: (defsymbolmacro symbol expansion) Define a symbol macro. Because symbol macros are not part of Clojure's built-in macro expansion system, they can be used only inside a with-symbol-macros form.Source deftemplatemacroUsage: (deftemplate name params & forms) Define a macro that expands into forms after replacing the symbols in params (a vector) by the corresponding parameters given in the macro call.Source macroletmacroUsage: (macrolet fn-bindings & exprs) Define local macros that are used in the expansion of exprs. The syntax is the same as for letfn forms.Source mexpandfunctionUsage: (mexpand form) Like clojure.core/macroexpand, but takes into account symbol macros.Source mexpand-1functionUsage: (mexpand-1 form) Like clojure.core/macroexpand-1, but takes into account symbol macros.Source mexpand-allfunctionUsage: (mexpand-all form) Perform a full recursive macro expansion of a form.Source name-with-attributesfunctionUsage: (name-with-attributes name macro-args) To be used in macro definitions. Handles optional docstrings and attribute maps for a name to be defined in a list of macro arguments. If the first macro argument is a string, it is added as a docstring to name and removed from the macro argument list. If afterwards the first macro argument is a map, its entries are added to the name's metadata map and the map is removed from the macro argument list. The return value is a vector containing the name with its extended metadata map and the list of unprocessed macro arguments.Source symbol-macroletmacroUsage: (symbol-macrolet symbol-bindings & exprs) Define local symbol macros that are used in the expansion of exprs. The syntax is the same as for let forms.Source with-symbol-macrosmacroUsage: (with-symbol-macros & exprs) Fully expand exprs, including symbol macros.Source Copyright 2007-2023 by Rich Hickey and the various contributors
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber. |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |