Expressions

Expressions (COPY)

Top  Previous  Next

XPL0, like many computer languages, is a mathematical language. It does arithmetic and other operations on numbers. Expressions consist of factors and operators. Operators perform on anything that has a value, such as constants, variables, and sub-expressions. An expression calculates to a single value. In XPL0, an expression can be used anywhere a value is used and vice versa.

 

Here is detailed information about expressions:

 

Arithmetic Expressions
Mixed Mode
Unary Operators
Comparisons
True and False *
Boolean Expressions *
Example Program: SETS *
Shift Operators *
If Expression *
Constant Expressions *
Conditional Compile *
Hazards of Real Numbers *