operator precedence

Operator precedence

The precedence of methods and operators in Cyan is as follows. The first ones in the list have lower precedence.

||
~||
&&
=> ==>
!
== <= < > >= != === !== <=> ~=
non-unary message passing
|>
++ -- (binary)
.. ..<
+ -
/ * %
||| ~| &
<.< >.> >.>>
.* .+ .%
unary message passing
+ - ! ~ (unary)

The expression

(stack asList get: i*2 + 1) < y + 2 && ! ok

will be considered as if it was

(((stack asList) get: ((i*2) + 1)) < (y + 2)) && (! ok)