next up previous contents index
Next: include Expression Up: Expressions Previous: Event Expressions

Precedence

 

    Glish operators for the most part take their precedence from C, with a few additions. Table 4.1 summarizes the precedence and associativity; entries at the top have highest precedence, those at the bottom lowest. Parentheses can always be used to override precedence and associativity.

 

Operators Associativity
., [], (),:: left
!, unary + and - none
: none
ref, const, val none
^ right
*, /, % left
+, - left
==, !=, <, <=, >, <= none
& left
| left
&& left
|| left
function none
:= right
Table 4.1: Operator Precedence and Associativity, Highest to Lowest

 

   



Thu Nov 13 16:44:05 EST 1997