Inspect Manual

Using Inspect With Pascal
Inspect Manual429164-006
12-7
Expressions
Expressions
Here is the syntax you use to create Pascal expressions in Inspect.
Usage Considerations
The precedence of operators is the same as the precedence defined in Pascal.
Inspect does not support function calls in expressions.
Inspect does not support set expressions.
Pascal Data Types and Inspect
The following subsections discuss how Inspect handles and presents various Pascal
data types.
expression:
simple-exp [ rel-op simple-exp ]...
rel-op: one of
= <> < > <= >=
simple-exp: [ + | - ] term [ add-op term ]...
add-op: one of
+ - OR
term:
factor [ mult-op factor ]...
mult-op: one of
* / DIV MOD AND << >>
factor: one of
data-location
unsigned-constant
NOT factor
(expression)