54ebe659726f

chancery: Update site.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 03 Nov 2017 21:12:45 -0400
parents efd3010b387b
children 39da848801bd
branches/tags (none)
files chancery/reference/index.html

Changes

--- a/chancery/reference/index.html	Fri Nov 03 21:00:06 2017 -0400
+++ b/chancery/reference/index.html	Fri Nov 03 21:12:45 2017 -0400
@@ -30,6 +30,8 @@
 <li><a href="#define-string-macro">DEFINE-STRING (macro)</a></li>
 <li><a href="#generate-macro">GENERATE (macro)</a></li>
 <li><a href="#generate-string-macro">GENERATE-STRING (macro)</a></li>
+<li><a href="#invoke-generate-function">INVOKE-GENERATE (function)</a></li>
+<li><a href="#invoke-generate-string-function">INVOKE-GENERATE-STRING (function)</a></li>
 <li><a href="#pos-function">POS (function)</a></li>
 <li><a href="#s-function">S (function)</a></li>
 </ul>
@@ -192,6 +194,44 @@
 </pre></div>
 
 
+<h3 id="invoke-generate-function"><code>INVOKE-GENERATE</code> (function)</h3>
+<div class="codehilite"><pre><span/>(INVOKE-GENERATE EXPRESSION)
+</pre></div>
+
+
+<p>Generate a single Chancery expression.</p>
+<p>THIS FUNCTION IS EXPERIMENTAL AND SUBJECT TO CHANGE IN THE FUTURE.</p>
+<p>Because this is a function, not a macro, you'll need to do the quoting
+  yourself:</p>
+<div class="codehilite"><pre><span/>(define-rule x 1 2 3)
+
+(generate (x x x))
+; =&gt; (1 3 3)
+
+(invoke-generate '(x x x))
+; =&gt; (2 1 2)
+</pre></div>
+
+
+<h3 id="invoke-generate-string-function"><code>INVOKE-GENERATE-STRING</code> (function)</h3>
+<div class="codehilite"><pre><span/>(INVOKE-GENERATE-STRING EXPRESSION)
+</pre></div>
+
+
+<p>Generate and stringify a single Chancery expression.</p>
+<p>THIS FUNCTION IS EXPERIMENTAL AND SUBJECT TO CHANGE IN THE FUTURE.</p>
+<p>Because this is a function, not a macro, you'll need to do the quoting
+  yourself:</p>
+<div class="codehilite"><pre><span/>(define-string x 1 2 3)
+
+(generate-string (x x x))
+; =&gt; "1 3 3"
+
+(invoke-generate-string '(x x x))
+; =&gt; "2 1 2"
+</pre></div>
+
+
 <h3 id="pos-function"><code>POS</code> (function)</h3>
 <div class="codehilite"><pre><span/>(POS STRING)
 </pre></div>