Operator precedence: Difference between revisions
Content added Content deleted
(Operator precedence en BASIC256) |
(add BQN) |
||
Line 405: | Line 405: | ||
|| 0 || <code>VALOF</code>, <code>TABLE</code> |
|| 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}}== |
=={{header|Bracmat}}== |
||
Bracmat has 15 binary operators and 12 unary operators, not counting the minus |
Bracmat has 15 binary operators and 12 unary operators, not counting the minus |