Skip to content
Leon Starr edited this page Jul 24, 2026 · 2 revisions

The domain line specifies the full name and the alias. In our example it is:

domain Elevator Management, EVMAN

The grammar is:

domain_header = "domain" SP domain_name domain_alias EOL*  // Declares the name of the domain
domain_name = icaps_name
domain_alias = ',' SP acword

So we have the keyword domain followed by an icaps_name. This is a sequence of one or more words, each delimited by a single space with the first letter of the first word being an uppercase letter.

This enforces a naming convention useful in the models. The convention is to have each word in the name start with an uppercase letter with the exception of prepositions, articles and other minor words like and, of, etc.

The alias must be all caps, thus acword, though this includes underscores and digits after the first character.

acword = r'[A-Z][A-Z0-9_]*'

Note also that a single space after the comma is required. It's draconian, but consistency makes files more readable.

Clone this wiki locally