mirror of
https://github.com/SymboScript/Book.git
synced 2024-11-06 05:43:58 +03:00
deploy: d02ffde5f7
This commit is contained in:
parent
ac1b8539f9
commit
5393d1b5dd
4 changed files with 26 additions and 28 deletions
25
print.html
25
print.html
|
@ -330,23 +330,22 @@ false
|
||||||
<h2 id="expressionss"><a class="header" href="#expressionss">Expressionss</a></h2>
|
<h2 id="expressionss"><a class="header" href="#expressionss">Expressionss</a></h2>
|
||||||
<h3 id="operator-priority"><a class="header" href="#operator-priority">Operator priority</a></h3>
|
<h3 id="operator-priority"><a class="header" href="#operator-priority">Operator priority</a></h3>
|
||||||
<div class="table-wrapper"><table><thead><tr><th>Operator/Expression</th><th>Associativity</th><th>Parser fn name</th><th>Impl</th></tr></thead><tbody>
|
<div class="table-wrapper"><table><thead><tr><th>Operator/Expression</th><th>Associativity</th><th>Parser fn name</th><th>Impl</th></tr></thead><tbody>
|
||||||
<tr><td>Method calls</td><td>Right to Left</td><td>call</td><td>❌</td></tr>
|
<tr><td>Method calls</td><td>Left to Right</td><td>call</td><td>❌</td></tr>
|
||||||
<tr><td>Function calls</td><td>Right to Left</td><td>call</td><td>❌</td></tr>
|
<tr><td>Function calls</td><td>Left to Right</td><td>call</td><td>❌</td></tr>
|
||||||
<tr><td><code>!</code> <code>++</code> <code>--</code> <code>()</code> <code>~</code></td><td>Left to Right</td><td>factor</td><td>✅</td></tr>
|
<tr><td><code>!</code> <code>++</code> <code>--</code> <code>()</code> <code>~</code></td><td>Left to Right</td><td>factor</td><td>✅</td></tr>
|
||||||
<tr><td><code>^</code></td><td>Left to Left</td><td>power</td><td>✅</td></tr>
|
<tr><td><code>^</code></td><td>Left to Left</td><td>power</td><td>✅</td></tr>
|
||||||
<tr><td><code>*</code> <code>/</code> <code>%</code></td><td>Left to Right</td><td>term</td><td>✅</td></tr>
|
<tr><td><code>*</code> <code>/</code> <code>%</code></td><td>Left to Right</td><td>term</td><td>✅</td></tr>
|
||||||
<tr><td><code>+</code> <code>-</code></td><td>Left to Right</td><td>add_sub</td><td>✅</td></tr>
|
<tr><td><code>+</code> <code>-</code></td><td>Left to Right</td><td>add_sub</td><td>✅</td></tr>
|
||||||
<tr><td><code>>></code> <code><<</code></td><td>Left to Right</td><td>shift</td><td>❌</td></tr>
|
<tr><td><code>>></code> <code><<</code></td><td>Left to Right</td><td>shift</td><td>✅</td></tr>
|
||||||
<tr><td><code><</code> <code><=</code> <code>></code> <code>>=</code> <code>==</code> <code>!=</code></td><td>Left to Right</td><td>cmp</td><td>❌</td></tr>
|
<tr><td><code>&</code></td><td>Left to Right</td><td>bit_and</td><td>✅</td></tr>
|
||||||
<tr><td><code>&</code></td><td>Left to Right</td><td>bit_and</td><td>❌</td></tr>
|
<tr><td><code>bxor</code></td><td>Left to Right</td><td>bit_xor</td><td>✅</td></tr>
|
||||||
<tr><td><code>bxor</code></td><td>Left to Right</td><td>bit_xor</td><td>❌</td></tr>
|
<tr><td><code>|</code></td><td>Left to Right</td><td>bit_or</td><td>✅</td></tr>
|
||||||
<tr><td><code>|</code></td><td>Left to Right</td><td>bit_or</td><td>❌</td></tr>
|
<tr><td><code>==</code> <code>!=</code> <code><</code> <code><=</code> <code>></code> <code>>=</code></td><td>Left to Right</td><td>cmp</td><td>✅</td></tr>
|
||||||
<tr><td><code>==</code> <code>!=</code> <code><</code> <code><=</code> <code>></code> <code>>=</code></td><td>Left to Right</td><td>cmp</td><td>❌</td></tr>
|
<tr><td><code>&&</code></td><td>Left to Right</td><td>logical_and</td><td>✅</td></tr>
|
||||||
<tr><td><code>&&</code></td><td>Left to Right</td><td>logical_and</td><td>❌</td></tr>
|
<tr><td><code>||</code></td><td>Left to Right</td><td>logical_or</td><td>✅</td></tr>
|
||||||
<tr><td><code>||</code></td><td>Left to Right</td><td>logical_or</td><td>❌</td></tr>
|
<tr><td><code>..</code></td><td>Left to Right</td><td>range</td><td>✅</td></tr>
|
||||||
<tr><td><code>..</code></td><td>Left to Right</td><td>range</td><td>❌</td></tr>
|
<tr><td><code>?</code> <code>:</code></td><td>Left to Right</td><td>ternary</td><td>✅</td></tr>
|
||||||
<tr><td><code>?</code> <code>:</code></td><td>Left to Right</td><td>ternary</td><td>❌</td></tr>
|
<tr><td><code>=</code> <code>:=</code> <code>+=</code> <code>-=</code> <code>*=</code> <code>/=</code> <code>^=</code> <code>%=</code></td><td>Right to Left</td><td>assign</td><td>✅?</td></tr>
|
||||||
<tr><td><code>=</code> <code>:=</code> <code>+=</code> <code>-=</code> <code>*=</code> <code>/=</code> <code>^=</code> <code>%=</code></td><td>Right to Left</td><td>assign</td><td>❌</td></tr>
|
|
||||||
</tbody></table>
|
</tbody></table>
|
||||||
</div><div style="break-before: page; page-break-before: always;"></div><h1 id="examples"><a class="header" href="#examples">Examples</a></h1>
|
</div><div style="break-before: page; page-break-before: always;"></div><h1 id="examples"><a class="header" href="#examples">Examples</a></h1>
|
||||||
<p>This is chapter about how the code in SymboScript looks.</p>
|
<p>This is chapter about how the code in SymboScript looks.</p>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -177,23 +177,22 @@
|
||||||
<h2 id="expressionss"><a class="header" href="#expressionss">Expressionss</a></h2>
|
<h2 id="expressionss"><a class="header" href="#expressionss">Expressionss</a></h2>
|
||||||
<h3 id="operator-priority"><a class="header" href="#operator-priority">Operator priority</a></h3>
|
<h3 id="operator-priority"><a class="header" href="#operator-priority">Operator priority</a></h3>
|
||||||
<div class="table-wrapper"><table><thead><tr><th>Operator/Expression</th><th>Associativity</th><th>Parser fn name</th><th>Impl</th></tr></thead><tbody>
|
<div class="table-wrapper"><table><thead><tr><th>Operator/Expression</th><th>Associativity</th><th>Parser fn name</th><th>Impl</th></tr></thead><tbody>
|
||||||
<tr><td>Method calls</td><td>Right to Left</td><td>call</td><td>❌</td></tr>
|
<tr><td>Method calls</td><td>Left to Right</td><td>call</td><td>❌</td></tr>
|
||||||
<tr><td>Function calls</td><td>Right to Left</td><td>call</td><td>❌</td></tr>
|
<tr><td>Function calls</td><td>Left to Right</td><td>call</td><td>❌</td></tr>
|
||||||
<tr><td><code>!</code> <code>++</code> <code>--</code> <code>()</code> <code>~</code></td><td>Left to Right</td><td>factor</td><td>✅</td></tr>
|
<tr><td><code>!</code> <code>++</code> <code>--</code> <code>()</code> <code>~</code></td><td>Left to Right</td><td>factor</td><td>✅</td></tr>
|
||||||
<tr><td><code>^</code></td><td>Left to Left</td><td>power</td><td>✅</td></tr>
|
<tr><td><code>^</code></td><td>Left to Left</td><td>power</td><td>✅</td></tr>
|
||||||
<tr><td><code>*</code> <code>/</code> <code>%</code></td><td>Left to Right</td><td>term</td><td>✅</td></tr>
|
<tr><td><code>*</code> <code>/</code> <code>%</code></td><td>Left to Right</td><td>term</td><td>✅</td></tr>
|
||||||
<tr><td><code>+</code> <code>-</code></td><td>Left to Right</td><td>add_sub</td><td>✅</td></tr>
|
<tr><td><code>+</code> <code>-</code></td><td>Left to Right</td><td>add_sub</td><td>✅</td></tr>
|
||||||
<tr><td><code>>></code> <code><<</code></td><td>Left to Right</td><td>shift</td><td>❌</td></tr>
|
<tr><td><code>>></code> <code><<</code></td><td>Left to Right</td><td>shift</td><td>✅</td></tr>
|
||||||
<tr><td><code><</code> <code><=</code> <code>></code> <code>>=</code> <code>==</code> <code>!=</code></td><td>Left to Right</td><td>cmp</td><td>❌</td></tr>
|
<tr><td><code>&</code></td><td>Left to Right</td><td>bit_and</td><td>✅</td></tr>
|
||||||
<tr><td><code>&</code></td><td>Left to Right</td><td>bit_and</td><td>❌</td></tr>
|
<tr><td><code>bxor</code></td><td>Left to Right</td><td>bit_xor</td><td>✅</td></tr>
|
||||||
<tr><td><code>bxor</code></td><td>Left to Right</td><td>bit_xor</td><td>❌</td></tr>
|
<tr><td><code>|</code></td><td>Left to Right</td><td>bit_or</td><td>✅</td></tr>
|
||||||
<tr><td><code>|</code></td><td>Left to Right</td><td>bit_or</td><td>❌</td></tr>
|
<tr><td><code>==</code> <code>!=</code> <code><</code> <code><=</code> <code>></code> <code>>=</code></td><td>Left to Right</td><td>cmp</td><td>✅</td></tr>
|
||||||
<tr><td><code>==</code> <code>!=</code> <code><</code> <code><=</code> <code>></code> <code>>=</code></td><td>Left to Right</td><td>cmp</td><td>❌</td></tr>
|
<tr><td><code>&&</code></td><td>Left to Right</td><td>logical_and</td><td>✅</td></tr>
|
||||||
<tr><td><code>&&</code></td><td>Left to Right</td><td>logical_and</td><td>❌</td></tr>
|
<tr><td><code>||</code></td><td>Left to Right</td><td>logical_or</td><td>✅</td></tr>
|
||||||
<tr><td><code>||</code></td><td>Left to Right</td><td>logical_or</td><td>❌</td></tr>
|
<tr><td><code>..</code></td><td>Left to Right</td><td>range</td><td>✅</td></tr>
|
||||||
<tr><td><code>..</code></td><td>Left to Right</td><td>range</td><td>❌</td></tr>
|
<tr><td><code>?</code> <code>:</code></td><td>Left to Right</td><td>ternary</td><td>✅</td></tr>
|
||||||
<tr><td><code>?</code> <code>:</code></td><td>Left to Right</td><td>ternary</td><td>❌</td></tr>
|
<tr><td><code>=</code> <code>:=</code> <code>+=</code> <code>-=</code> <code>*=</code> <code>/=</code> <code>^=</code> <code>%=</code></td><td>Right to Left</td><td>assign</td><td>✅?</td></tr>
|
||||||
<tr><td><code>=</code> <code>:=</code> <code>+=</code> <code>-=</code> <code>*=</code> <code>/=</code> <code>^=</code> <code>%=</code></td><td>Right to Left</td><td>assign</td><td>❌</td></tr>
|
|
||||||
</tbody></table>
|
</tbody></table>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in a new issue