Elements of a description file

## Contents

- Your rights

- Introduction

- Component model

- Component description file

  - Preprocessing

  - Elements of a description file

  - Data type and constant definitions

  - Module declaration

  - Component declaration

  - Interface declaration

  - IDS declaration

  - Port declaration

  - Task declaration

  - Service declaration

  - Codel declaration

  - Identifiers and reserved keywords

  - Pragmas

  - Grammar reference

- GenoM IDL mappings

- Running GenoM

- Tutorials

- Templates

## Elements of a description file

A `dot gen` specification consists of one or more statements. Statements are either data types definitions, via IDL statements, or specific genom statements. `cpp` directives (see Preprocessing) are handled at the lexical level and do not appear in the grammar.

(1) `specification ::=` | `{` `statement` `}`
(2) `statement ::=` | `idl-statement` `|` `component` `|` `interface`
(4) `idl-statement ::=` | `module` `|` `const-dcl` `|` `type-dcl`

IDL statements define types, constants or IDL modules containing types and constants. The syntax follows closely the subset the 'OMG IDL' specification corresponding to type and constants definitions (see Chapter 7 of the CORBA specification, Object Management Group, version 3.1. Part I: CORBA interfaces). Note that this subset of the dogten grammar is not in any manner tied to OMG IDL and may diverge from future OMG specifications.

A `genom` statement defines components or interfaces.

### See also

- Data type description

- Component declaration

- Interface declaration