A lexical group. In GOLD, lexical groups are used for situations where a number of recognized tokens should be organized into a single "group". This mechanism is most commonly used to handle line and block comments. However, it is not limited to "noise", but can be used for any content.
Record Field | Description |
|
The way the group advances.
|
|
|
The symbol that represents the group's end. None (or null in C#) means that the group is ended by a new line.
|
|
|
The way the group ends.
|
Full Usage:
Name
Field type: string
|
The name of the group.
|
|
A set of indexes whose corresponding groups can be nested inside this group.
|
|
The symbol that represents the group's start.
|
Instance member | Description |
|
|
Full Usage:
this.IsEndedByNewline
Returns: bool
|
Whether this group is ended by a new line.
|
Full Usage:
this.IsTerminal
Returns: bool
|
Whether this group's content is a terminal.
|