MPE/iX - CI Programming for Stability

July 18, 2008 HP World '01 79
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