Inspect Manual

Using Inspect With C
Inspect Manual429164-006
8-7
Expressions
Expressions
Here is the syntax you use to create C expressions in Inspect.
Usage Considerations
Operator precedence is the same as that defined in C.
Inspect does not support the C comma expression and operator; for example:
x = 4, x + 2
Inspect does not support the C conditional expression and operator, which requires
three operands; for example:
a ? b : c
Inspect does not support the C assignment operators (=, +=, =, and so on).
You can perform an arithmetic operation on two character constants.
When you use a string constant in an arithmetic expression, Inspect evaluates the
string constant as a character constant.
Inspect supports type letters such as U (unsigned) and L (long).
expression: one of
primary
*expression
&expression
-expression
!expression
~expression
expression binary-op expression
primary: one of
data-location
constant
string
( expression )
binary-op: one of
* / % + - >>
<< < > <= >= ==
!= & ^ | && ||