A helper static class to create terminals.
Static member | Description |
Full Usage:
Terminal.Create(name, regex)
Parameters:
string
-
The terminal's name.
regex : Regex
-
The terminal's corresponding regular expression.
Returns: DesigntimeFarkle
|
Creates a terminal that does not contain any significant information for the parsing application.
|
Full Usage:
Terminal.Create(name, fTransform, regex)
Parameters:
string
-
The terminal's name.
fTransform : T<'T>
-
The function that transforms
the terminal's position and data to regex : Regex
-
The terminal's corresponding regular expression.
Returns: DesigntimeFarkle<'T>
|
Creates a terminal that contains significant
information of type
|
Full Usage:
Terminal.Literal(str)
Parameters:
string
-
The string literal this terminal will recognize.
Returns: DesigntimeFarkle
|
Creates a terminal that recognizes a literal string. It does not return anything.
|
|
This is different and better than a literal of
newline characters. If used anywhere in a grammar, it indicates that it
is line-based, which means that newline characters are not noise.
Newline characters are considered the character sequences
|
Full Usage:
Terminal.Virtual(name)
Parameters:
string
-
The virtual terminal's name
Returns: DesigntimeFarkle
|
Creates a virtual terminal. This method is intended for use in advanced scenarios.
|