Programs
General

Comments
Constants
Exceptions
Execution Environments
Identifiers
Relaxations
Spacing
T-Tables
Text
Variables

Lines
Expressions
Types
Operators
Binary Arithmetic Operators
Boolean Operators
Conversion Operators
Relational Operators
Structural Operators
Unary Arithmetic Operators

Literals
Comments
Constants
Exceptions
Execution Environments
Identifiers
Relaxations
Spacing
T-Tables
Text
Variables

Lines
Expressions
Types
Operators
Binary Arithmetic Operators
Boolean Operators
Conversion Operators
Relational Operators
Structural Operators
Unary Arithmetic Operators

Literals
A type defines which values a variable can hold.

- Decimal
- Boolean (see below)
- Character (see below)
- Data Structure
- Array type

The array type is in addition to the first four types.

- Void

A variable of boolean type can hold a boolean value, which is either `yes`

or `no`

(often called `true`

and `false`

).

A variable of character type can hold a single UTF-16 character in the Basic Multilingual Plane (BMP) or one of the 16-bit surrogate code points. Characters outside this is stored as two characters, as a surrogate pair. This means that the numeric range of the character type is 16-bit or `0 – 2^16-1`

.

The void type is only used to say that a function does not return a value.

A type descriptor describes a type.

The type descriptor can either be

- A type name
- An optional array length

- Decimal
- Boolean
- Character
- Itenfifier for a data strucutre

Syntax: `[]`

Variables are declared with unspecified length. The length is accessible using the array length operator documented as a structural operator.

Syntax: `[5]`

, `[a]`

, `[c+2]`

.

When allocating an array, the length must be given. An array length consists of square brackets with something that results in a value inside. The value can be a decimal literal, a decimal variable or an expression resulting in a decimal value.

We would be more than happy to help you. Our opening hours are 9–15 (CET).

📞 (+47) 93 68 22 77

Nils Bays vei 50, 0876 Oslo, Norway

Copyright © 2018-24 progsbase.com by Inductive AS.