Next: , Previous: Preprocessing, Up: Input file format


5.2 Elements of a GenoM3 specification

A dotgen specification consists of one or more statements. Statements are either GenoM statements, IDL statements. cpp directives (see Preprocessing) are handled at the lexical level and do not interfere with the specification grammar.

  (1) specification         ::= { statement }
  (2) statement             ::= component
                              | interface
                              | idl-statement

  (4) idl-statement         ::= module
                              | const-dcl
                              | type-dcl

Definitions are named by the mean of identifiers, see Reserved keywords.

A GenoM statement defines components (see Component declaration) or interfaces (see Interface declaration).

An IDL statement defines types (see Type declaration), constants (see Constant declaration) or IDL modules containing types and constants (see Module declaration). The syntax follows closely the subset the OMG IDL specification corresponding to type and constants definitions (see Chapter 7 of 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.