MPE CI Programming for 7.0

July 22, 2008
Page 51
hp e3000
strategy
CI expressions
operators:
+ (ints and strings), -, *, /, ^, (), <, <=, >, >=, =, AND, BAND, BNOT,
BOR, BXOR, CSL, CSR, LSL, LSR, MOD, NOT, OR, XOR
precedence (high to low):
1) variable dereferencing
2) unary + or -
3) bit operators (csr, lsl…)
4) exponentiation ( ^ )
5) *, /, mod
6) +, -
7) <, <=, =, >, >=
8) logical operators (not, or…)
left to right evaluation, except exponentiation is r-to-l