Inspect Manual
Using Inspect With C++
Inspect Manual—429164-006
9-7
Expressions
Expressions
Here is the syntax you use to create C++ expressions in Inspect.
Usage Considerations
Expression handling within Inspect does not support overloaded or redefined
operators.
Operator precedence for C++ 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
* / % + - >>
<< < > <= >= ==
!= & ^ | && ||