# group

In the module definitions part, definitions can be collected in named groups.

- Groups may be nested i.e. groups may contain other groups;
- grouping is done to aid readability and to add logical structure to the module if required.;
- groups may have attributes;
- it is possible to selectively import definitions contained in a group.

TITAN specific restriction compared to the standard: The selective import of groups is not implemented. The keyword import is always treated as if it were import all.

Related keywords:

- module
- with

### group group_identifier{ definitions } [ with attributes ]

- The group keyword introduces the group definition.

- gropu_identifier is the name used to refer to the module. Must begin with a letter, may contain letters, numbers and underscore characters.

- definitions may contain any definition allowed in the module definition part.

- attributes: see the keyword with for details.

Example

group Skupina {
type enumerated Examplh {pondeli, utery, streda}
}

The group Skupina contains one type definition (Examplh).

BNF definition of group