Commit d3acdcbb authored by Jason Miller's avatar Jason Miller Committed by GitHub
Browse files

Merge pull request #30 from PuercoPop/update-docs

Update the Arithmetic and Boolean section of the reference documentation
parents bc3ba1da 05450c94
......@@ -766,10 +766,8 @@
<dl>
<dt>&lt;operator&gt;</dt>
<dd>one of <code>*, /, %, +, -, <<, >>, >>>, < >, EQL,
==, !=, =, ===, !==, &, ^, |, &&, AND, ||, OR</code>
<dd>one of <code>*, /, %, +, -, ASH, <, >, <=, >=, =, EQL, EQUAL, NOT, SETF, AND, OR</code>
</dd>
<dt>&lt;single-operator&gt;</dt>
<dd>one of <code>INCF, DECF, ++, --, NOT, !</code></dd>
......@@ -779,7 +777,7 @@
<p>Operator forms are similar to function call forms, but have an
operator as function name.</p>
<p>Please note that <code>=</code> is converted to <code>==</code> in
<p>Please note that <code>=</code> is converted to <code>===</code> in
JavaScript. The <code>=</code> Parenscript operator is not the
assignment operator.</p>
......@@ -791,6 +789,21 @@
<dd><code>1 === 2;</code></dd>
</dl>
<p>The negation of equality operators are obtained by through <code>NOT</code>. For example:</p>
<dl>
<dt><code>(not (eql 1 2))</code></dt>
<dd><code>1 !== 2</code></dd>
</dl>
<p>The operators that in CL have variable arity convert into multiple calls
to the equivalent operators in JavaScript</p>
<dl>
<dt><code>(logxor 1 3 7 15)</code></dt>
<dd><code>1 ^ 3 ^ 7 ^ 15 </code></dd>
</dl>
<h2 id="section-math">Mathematical functions and constants</h2>
<ul>
<li>(<code id="max">MAX</code> {number}*)</li>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment