mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2024-12-12 03:30:02 +00:00
Reference: Add Operator Precedence table
This commit is contained in:
parent
513f07de62
commit
0f77241688
@ -353,6 +353,21 @@ can be literals (unquoted strings), strings, or numbers
|
||||
<dl>
|
||||
<dt>+<dd>String Concatenation
|
||||
</dl>
|
||||
|
||||
<h3>Operator Precedence</h3>
|
||||
<p>Operators are listed vertically in order of precedence, from highest to lowest. Operators are the same line are of the same priority, and in an expression are executed from left to right. This order differs from the order in some other dialects of BASIC, but does match Applesoft.
|
||||
|
||||
<ul style="list-style-type: none">
|
||||
<li><code>( )</code>
|
||||
<li><code>+ - NOT</code> (unary operators)
|
||||
<li><code>^</code>
|
||||
<li><code>* /</code>
|
||||
<li><code>+ -</code>
|
||||
<li><code>= < > <= =< >= => <> ><</code>
|
||||
<li><code>AND</code>
|
||||
<li><code>OR</code>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
||||
<section id="errorcodes">
|
||||
|
Loading…
Reference in New Issue
Block a user