expression
A Pascal expression constructed from the comments, operators,
identifiers, literals, predeclared functions, type cast, and extensions
listed in this section.
Comments
{ comment
}
(*
comment *)
"comment"
Operators
- Arithmetic
+,
-, *,
/, div,
mod
- Relational
=,
<>, <,
>, <=,
>=, in
- Boolean
and,
or, not
- Set
+,
*, -
- Assignment
:=
- Array indexing
[ , ]
- Field selection
.
- Dereference
^
- Set construction
[]
- Grouping
( )
Identifiers
Identifiers are case-insensitive and must start with a letter
(ISO Latin-1 decimal values 65-90 and 97-122); any additional characters
can be letters, digits (0-9),
or underscore (_).
Literals
- Integer
digits (decimal)
- Real
digits.digits
digits[.digits]E[+|-]digits
For example, 5.48E-11
is a valid real number.
- Character
'character'
- String
'characters'
- Boolean
TRUE
FALSE
- Pointer
NIL
Predeclared Functions
Type Cast
type_name(expression)
Debugger Extensions