/usr/share/doc/libtools-macro-clojure/html/README.html 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 55 56 57 58 59 60 61 62 63 64 65 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>tools.macro</title>
</head>
<body>
<h1>tools.macro</h1>
<p>Tools for writing macros</p>
<h4>macrolet: local macro definitions</h4>
<p>Example:</p>
<pre><code>(macrolet [(foo [form] `(~form ~form))]
(foo x))
</code></pre>
<p>expands to <code>(x x)</code></p>
<h4>symbol-macrolet: local symbol macro definitions</h4>
<p>Example:</p>
<pre><code>(symbol-macrolet [def foo]
(def def def))
</code></pre>
<p>expands to <code>(def def foo)</code></p>
<h4>defsymbolmacro, with-symbol-macros: global symbol macro definitions</h4>
<p>Example:</p>
<pre><code>(defsymbolmacro sum-2-3 (plus 2 3))
(with-symbol-macros
(+ 1 sum-2-3))
</code></pre>
<p>expands to <code>(+ 1 (plus 2 3))</code></p>
<h4>mexpand-1</h4>
<p>like clojure.core/macroexpand-1, but handles symbol macros</p>
<h4>mexpand</h4>
<p>like clojure.core/macroexpand, but handles symbol macros </p>
<h4>mexpand-all</h4>
<p>full recursive macro expansion </p>
<h4>name-with-attributes</h4>
<p>For writing def-like macros. Handles optional docstrings and attribute
maps for a name to be defined in a list of macro arguments.</p>
<h2>License</h2>
<p>Copyright © 2011 Rich Hickey</p>
<p>Licensed under the EPL. (See the file epl.html.)</p>
</body>
</html>
|