Define new semantax
The "semantax" pragma is used to define a new semantax as part of building a new vocabulary.
The syntax for the
semantax pragma consists of:
- An exclamation point !
- The keyword semantax
vocabularyattribute, specified using a full-stop . followed by an arbitrary namespace.
semantaxattribute, specified using a hashtag # followed by the mnemonic being defined as the new semantax.
phrase typeattribute, specified as either
parentsattribute (optional), being a space-separated list of the semantax which are allowed to be containers for this new semantax.
impliedattribute (optional), identifying the name of another semantax which is to be treated as the default implied semantax.
containerattribute (optional) which specifies that the new semantax may have subordinates.
self-closingattribute (optional) which specifies that the new semantax may not contain compositional text.
*standard attribute is used to define a new semantax that follows the basic phrasing pattern. The
*inline attribute is used to define a new semantax that follows the term phrasing pattern.
self-closing attributes provide clues to the BLUEPROCESSOR to correctly compile manuscripts even when the author makes syntax mistakes.
Here is what the
semantax pragmas looks like for defining a vcard vocabulary.
And here is how the new vocabulary may be used: