Operator precedence: Difference between revisions
add BQN
(Operator precedence en BASIC256) |
(add BQN) |
||
Line 405:
|| 0 || <code>VALOF</code>, <code>TABLE</code>
|}
=={{header|BQN}}==
The operators of most popular programming languages correspond to functions in BQN (all functions, builtin and defined, are infix).
However, modifiers (higher order functions) have higher precedence over functions.
Here, <code>2 + 1</code> is evaluated first:
<lang bqn>3 * 2 + 1</lang>
Here, <code>-˜</code> is evaluated first. <code>˜</code> flips the arguments given to a function.
<lang bqn>3 * 2 -˜ 1</lang>
=={{header|Bracmat}}==
Bracmat has 15 binary operators and 12 unary operators, not counting the minus
|