temperance/reference/index.html @ cffe9e486f63

cl-blt: Update site.
author Steve Losh <steve@stevelosh.com>
date Sat, 11 Feb 2017 00:55:47 +0000
parents 699ab4f05363
children 7f39fe8a8012
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title> API Reference / Temperance</title>
        <link rel="stylesheet" href="../_dmedia/tango.css"/>
        <link rel="stylesheet/less" type="text/css" href="../_dmedia/style.less"/>
        <script src="../_dmedia/less.js" type="text/javascript">
        </script>
    </head>
    <body class="content">
        <div class="wrap">
            <header><h1><a href="..">Temperance</a></h1></header>
                <div class="markdown">
<h1 id="api-reference"><a href="">API Reference</a></h1><p>The following is a list of all user-facing parts of Temperance.</p>
<p>If there are backwards-incompatible changes to anything listed here, they will
be noted in the changelog and the author will feel bad.</p>
<p>Anything not listed here is subject to change at any time with no warning, so
don't touch it.</p>
<div class="toc">
<ul>
<li><a href="#package-temperance">Package TEMPERANCE</a><ul>
<li><a href="#fact-macro">FACT (macro)</a></li>
<li><a href="#facts-macro">FACTS (macro)</a></li>
<li><a href="#finalize-logic-frame-function">FINALIZE-LOGIC-FRAME (function)</a></li>
<li><a href="#invoke-fact-function">INVOKE-FACT (function)</a></li>
<li><a href="#invoke-facts-function">INVOKE-FACTS (function)</a></li>
<li><a href="#invoke-prove-function">INVOKE-PROVE (function)</a></li>
<li><a href="#invoke-query-function">INVOKE-QUERY (function)</a></li>
<li><a href="#invoke-query-all-function">INVOKE-QUERY-ALL (function)</a></li>
<li><a href="#invoke-query-do-function">INVOKE-QUERY-DO (function)</a></li>
<li><a href="#invoke-query-find-function">INVOKE-QUERY-FIND (function)</a></li>
<li><a href="#invoke-query-map-function">INVOKE-QUERY-MAP (function)</a></li>
<li><a href="#invoke-rule-function">INVOKE-RULE (function)</a></li>
<li><a href="#make-database-function">MAKE-DATABASE (function)</a></li>
<li><a href="#pop-logic-frame-function">POP-LOGIC-FRAME (function)</a></li>
<li><a href="#prove-macro">PROVE (macro)</a></li>
<li><a href="#push-logic-frame-function">PUSH-LOGIC-FRAME (function)</a></li>
<li><a href="#push-logic-frame-with-macro">PUSH-LOGIC-FRAME-WITH (macro)</a></li>
<li><a href="#query-macro">QUERY (macro)</a></li>
<li><a href="#query-all-macro">QUERY-ALL (macro)</a></li>
<li><a href="#query-do-macro">QUERY-DO (macro)</a></li>
<li><a href="#query-find-macro">QUERY-FIND (macro)</a></li>
<li><a href="#query-map-macro">QUERY-MAP (macro)</a></li>
<li><a href="#reset-standard-database-function">RESET-STANDARD-DATABASE (function)</a></li>
<li><a href="#rule-macro">RULE (macro)</a></li>
<li><a href="#with-fresh-database-macro">WITH-FRESH-DATABASE (macro)</a></li>
</ul>
</li>
</ul></div>
<h2 id="package-temperance">Package <code>TEMPERANCE</code></h2>
<h3 id="fact-macro"><code>FACT</code> (macro)</h3>
<div class="codehilite"><pre>(FACT DATABASE FACT)
</pre></div>


<h3 id="facts-macro"><code>FACTS</code> (macro)</h3>
<div class="codehilite"><pre>(FACTS DATABASE
  &amp;BODY
  FACTS)
</pre></div>


<h3 id="finalize-logic-frame-function"><code>FINALIZE-LOGIC-FRAME</code> (function)</h3>
<div class="codehilite"><pre>(FINALIZE-LOGIC-FRAME DATABASE)
</pre></div>


<h3 id="invoke-fact-function"><code>INVOKE-FACT</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-FACT DATABASE FACT)
</pre></div>


<h3 id="invoke-facts-function"><code>INVOKE-FACTS</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-FACTS DATABASE &amp;REST FACTS)
</pre></div>


<h3 id="invoke-prove-function"><code>INVOKE-PROVE</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-PROVE DATABASE &amp;REST TERMS)
</pre></div>


<h3 id="invoke-query-function"><code>INVOKE-QUERY</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-QUERY DATABASE &amp;REST TERMS)
</pre></div>


<h3 id="invoke-query-all-function"><code>INVOKE-QUERY-ALL</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-QUERY-ALL DATABASE &amp;REST TERMS)
</pre></div>


<h3 id="invoke-query-do-function"><code>INVOKE-QUERY-DO</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-QUERY-DO DATABASE FUNCTION &amp;REST TERMS)
</pre></div>


<h3 id="invoke-query-find-function"><code>INVOKE-QUERY-FIND</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-QUERY-FIND DATABASE PREDICATE &amp;REST TERMS)
</pre></div>


<h3 id="invoke-query-map-function"><code>INVOKE-QUERY-MAP</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-QUERY-MAP DATABASE FUNCTION &amp;REST TERMS)
</pre></div>


<h3 id="invoke-rule-function"><code>INVOKE-RULE</code> (function)</h3>
<div class="codehilite"><pre>(INVOKE-RULE DATABASE HEAD &amp;REST BODY)
</pre></div>


<h3 id="make-database-function"><code>MAKE-DATABASE</code> (function)</h3>
<div class="codehilite"><pre>(MAKE-DATABASE)
</pre></div>


<h3 id="pop-logic-frame-function"><code>POP-LOGIC-FRAME</code> (function)</h3>
<div class="codehilite"><pre>(POP-LOGIC-FRAME DATABASE)
</pre></div>


<h3 id="prove-macro"><code>PROVE</code> (macro)</h3>
<div class="codehilite"><pre>(PROVE DATABASE &amp;REST TERMS)
</pre></div>


<h3 id="push-logic-frame-function"><code>PUSH-LOGIC-FRAME</code> (function)</h3>
<div class="codehilite"><pre>(PUSH-LOGIC-FRAME DATABASE)
</pre></div>


<h3 id="push-logic-frame-with-macro"><code>PUSH-LOGIC-FRAME-WITH</code> (macro)</h3>
<div class="codehilite"><pre>(PUSH-LOGIC-FRAME-WITH DATABASE
  &amp;BODY
  BODY)
</pre></div>


<h3 id="query-macro"><code>QUERY</code> (macro)</h3>
<div class="codehilite"><pre>(QUERY DATABASE &amp;REST TERMS)
</pre></div>


<h3 id="query-all-macro"><code>QUERY-ALL</code> (macro)</h3>
<div class="codehilite"><pre>(QUERY-ALL DATABASE &amp;REST TERMS)
</pre></div>


<h3 id="query-do-macro"><code>QUERY-DO</code> (macro)</h3>
<div class="codehilite"><pre>(QUERY-DO DATABASE FUNCTION &amp;REST TERMS)
</pre></div>


<h3 id="query-find-macro"><code>QUERY-FIND</code> (macro)</h3>
<div class="codehilite"><pre>(QUERY-FIND DATABASE PREDICATE &amp;REST TERMS)
</pre></div>


<h3 id="query-map-macro"><code>QUERY-MAP</code> (macro)</h3>
<div class="codehilite"><pre>(QUERY-MAP DATABASE FUNCTION &amp;REST TERMS)
</pre></div>


<h3 id="reset-standard-database-function"><code>RESET-STANDARD-DATABASE</code> (function)</h3>
<div class="codehilite"><pre>(RESET-STANDARD-DATABASE)
</pre></div>


<h3 id="rule-macro"><code>RULE</code> (macro)</h3>
<div class="codehilite"><pre>(RULE DATABASE
    HEAD
  &amp;BODY
  BODY)
</pre></div>


<h3 id="with-fresh-database-macro"><code>WITH-FRESH-DATABASE</code> (macro)</h3>
<div class="codehilite"><pre>(WITH-FRESH-DATABASE
  &amp;BODY
  BODY)
</pre></div>
                </div>
            <footer><p><i>Made with Lisp and love by <a href="http://stevelosh.com/">Steve Losh</a> in Reykjavík, Iceland.</i></p>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-15328874-3', 'auto');
  ga('send', 'pageview');

</script></footer>
        </div>
    </body>
</html>