Next: , Previous: , Up: Expression Evaluator   [Index]


3.14 Expression Syntax

The supported expression syntax allows for unary, binary and ternary operators, parentheses, character, cardinal, integer, real and C string constants, variables and functions.

A function call is introduced by the function name, an opening parenthesis, the function arguments separated by exactly one comma and an closing parenthesis.

The character constant syntax supports octal escaping and '\a', '\b', '\f', '\n', '\r', '\t' and '\v' escape sequences.

The type of character constants is integer.

The integer constant syntax supports C decimal, octal and hexadecimal coding.

Integer constants may be ‘i’ suffixed.

The cardinal constant syntax supports C decimal, octal and hexadecimal coding.

Cardinal constants are to be ‘z’ suffixed.

The real constant syntax supports decimal coding only.

Real constants may be ‘r’ suffixed.

The string constant syntax supports octal escaping and the C '\a', '\b', '\f', '\n', '\r', '\t' and '\v' escape sequences. Consequent string constants are interpreted as a single split string constant.

White space is allowed anywhere within an expression. White space characters belong to the space ( ), tab (\t) and new line (\n) set. It may be that the allowed white space characters set is or may become larger. An application should not assume that the allowed white space characters set do not include other characters.

The expression completion syntax may be selected from the first occurence of a specified character or the first occurence of an unmatched closing parenthesis.

See Completions.

See struct x1f4_e4_type.