Operator Precedence

Operator Precedence Table

Operator

Precedence Level

Fix

Associativity

[ ]

10

Right bracket

 

.

10

Infix

Left

( )

10

Right bracket

 

+

20

Prefix

Right

-

20

Prefix

Right

!

20

Prefix

Right

*

30

Infix

Left

/

30

Infix

Left

div

30

Infix

Left

mod

30

Infix

Left

+

40

Infix

Left

-

40

Infix

Left

member

45

Infix

Left

inside

45

Infix

Left

!inside

45

Infix

Left

directlyinside

45

Infix

Left

!directlyinside

45

Infix

Left

contain

45

Infix

Left

!contain

45

Infix

Left

directlycontain

45

Infix

Left

!directlycontain

45

Infix

Left

after

45

Infix

Left

!after

45

Infix

Left

directlyafter

45

Infix

Left

!directlyafter

45

Infix

Left

before

45

Infix

Left

!before

45

Infix

Left

directlybefore

45

Infix

Left

!directlybefore

45

Infix

Left

overlap

45

Infix

Left

!overlap

45

Infix

Left

intersect

45

Infix

Left

without

45

Infix

Left

<

60

Infix

Left

<=

60

Infix

Left

>

60

Infix

Left

>=

60

Infix

Left

==

70

Infix

Left

!=

70

Infix

Left

and

80

Infix

Right

or

90

Infix

Right

=

100

Infix

Right

:=

100

Infix

Right

|

110

Infix

Right

?

110

Infix

Right

Note: Operators with a higher precedence level (smaller numeric values) bind tighter than those of a lower precedence level.


Up Previous Next