-
Notifications
You must be signed in to change notification settings - Fork 0
Domain
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.
Copyright 2023-2026 © Leon Starr under MIT Open Source License