/usr/share/doc/libtools-macro-clojure/README.md is in libtools-macro-clojure 0.1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | # tools.macro
Tools for writing macros
#### macrolet: local macro definitions ####
Example:
(macrolet [(foo [form] `(~form ~form))]
(foo x))
expands to `(x x)`
#### symbol-macrolet: local symbol macro definitions ####
Example:
(symbol-macrolet [def foo]
(def def def))
expands to `(def def foo)`
#### defsymbolmacro, with-symbol-macros: global symbol macro definitions ####
Example:
(defsymbolmacro sum-2-3 (plus 2 3))
(with-symbol-macros
(+ 1 sum-2-3))
expands to `(+ 1 (plus 2 3))`
#### mexpand-1 ####
like clojure.core/macroexpand-1, but handles symbol macros
#### mexpand ####
like clojure.core/macroexpand, but handles symbol macros
#### mexpand-all ####
full recursive macro expansion
#### name-with-attributes ####
For writing def-like macros. Handles optional docstrings and attribute
maps for a name to be defined in a list of macro arguments.
## License
Copyright © 2011 Rich Hickey
Licensed under the EPL. (See the file epl.html.)
|