Concrete and global syntax properties
You can set concrete syntax properties on different types and elements. Some properties apply to more than one type or element of the abstract syntax. You can also set two global language properties in the concrete syntax. These properties are not attached to a particular abstract syntax type.
Concrete syntax properties for types and element
The following table shows all the properties that are available in the concrete syntax, and the
types and elements to which they apply.
| Property | Sequence type | Choice type | Terminal type | Element of a choice type | Element of a sequence type: Only once | Element of a sequence type: Optional | Element of a sequence type: Multiple | Element of a sequence type: Optional multiple |
|---|---|---|---|---|---|---|---|---|
| newline |
|
|
|
|
|
|
|
|
| indent |
|
|
|
|
|
|
|
|
| style |
|
|
|
|
|
|
|
|
| menuText |
|
|
|
|
||||
| text |
|
|
|
|
||||
| separator |
|
|
||||||
| separatorNewline |
|
|
||||||
| separatorIndent |
|
|
||||||
| default |
|
|
||||||
| present |
|
|
||||||
| emptyText |
|
|
||||||
| choiceType |
|
|||||||
| blocking |
|
|||||||
| merge |
|
|
||||||
| meta |
|
|||||||
| fixedText |
|
|||||||
| deprecated |
|
|||||||
| toolTip |
|
|
|
|||||
| label |
|
|
||||||
| tokenClass |
|
|||||||
| generatorText |
|
|
||||||
| generatorNewline |
|
|
||||||
| generatorIndent |
|
|
||||||
| optionalText |
|
|||||||
| optionalPrefix |
|
Global properties
Neither of these properties are attached to a particular type of the abstract syntax, so they are
not prefixed with a type name:
-
semanticContextExtension
-
translatorClass
useAlternateNames = true.