A helper static class to create groups. Groups are used to define lexical elements that start and end with specified literals, and contain arbitrary characters. Groups are a tokenizer's construct, and their content is considered to be a terminal by the parser. Comments are essentially groups, but this class creates groups that have significant content.
Static member | Description |
Full Usage:
Group.Block(name, groupStart, groupEnd)
Parameters:
string
-
The group's name.
groupStart : string
-
The sequence of characters
that specify the beginning of the group.
groupEnd : string
-
The sequence of characters
that specify the end of the group.
Returns: DesigntimeFarkle
|
Creates a line group that does not contain any significant information for the parsing application.
|
Full Usage:
Group.Block(name, groupStart, groupEnd, fTransform)
Parameters:
string
-
The group's name.
groupStart : string
-
The sequence of characters
that specify the beginning of the group.
groupEnd : string
-
The sequence of characters
that specify the end of the group.
fTransform : T<'T>
-
The function that transforms
the group's position and data to Returns: DesigntimeFarkle<'T>
|
Creates a block group. Block groups end with a string literal.
|
Full Usage:
Group.Line(name, groupStart)
Parameters:
string
-
The group's name.
groupStart : string
-
The sequence of characters
that specify the beginning of the group.
Returns: DesigntimeFarkle
|
Creates a line group that does not contain any significant information for the parsing application.
|
Full Usage:
Group.Line(name, groupStart, fTransform)
Parameters:
string
-
The group's name.
groupStart : string
-
The sequence of characters
that specify the beginning of the group.
fTransform : T<'T>
-
The function that transforms
the group's position and data to Returns: DesigntimeFarkle<'T>
|
Creates a line group. As the name says, it ends with a new line.
|