F# operators to easily work with designtime Farkles and production builders.
Function or value | Description |
|
Creates a production builder with one non-significant `DesigntimeFarkle`. This function is useful to start building a `Production`.
|
|
Creates a production builder with one non-significant string literal.
|
|
Creates a production builder with one significant `DesigntimeFarkle<'T>`. This function is useful to start building a `Production`.
|
|
`ProductionBuilder.FinishConstant` as an operator.
|
Full Usage:
df |>> f
Parameters:
DesigntimeFarkle<'a>
f : 'a -> 'b
Returns: DesigntimeFarkle<'b>
|
Creates a new `DesigntimeFarkle<'T>` that transforms the output of the given one with the given function.
|
Full Usage:
name ||= members
Parameters:
string
members : Production<'a> list
Returns: DesigntimeFarkle<'a>
|
Creates a `DesigntimeFarkle<'T>` that represents a nonterminal with the given name and productions.
|
Full Usage:
name |||= members
Parameters:
string
members : ProductionBuilder list
Returns: DesigntimeFarkle
|
|
|
|
|
An alias for `ProductionBuilder.Empty`.
|
Full Usage:
error msg
Parameters:
string
Returns: 'a
|
Raises an error that happened during the parsing process. In contrast with raising an exception, these errors are caught by the `RuntimeFarkle` API and track their position. Use this function when the error might occur under normal circumstances (such as an unknown identifier name in a programming language).
|
Full Usage:
errorf fmt
Parameters:
StringFormat<'a, 'b>
Returns: 'a
|
An edition of `error` that supports formatted strings.
|
|
|
|
Creates a designtime Farkle that recognizes many occurrences of the given one and returns them in a list.
|
|
Creates a designtime Farkle that recognizes more than one occurrences of the given one and returns them in a list.
|
Full Usage:
manyCollection df
Parameters:
DesigntimeFarkle<'T>
Returns: DesigntimeFarkle<'TCollection>
|
Creates a designtime Farkle that recognizes many occurrences of the given one and returns them in any collection type.
|
Full Usage:
manyCollection1 df
Parameters:
DesigntimeFarkle<'T>
Returns: DesigntimeFarkle<'TCollection>
|
Creates a designtime Farkle that recognizes more than one occurrences of the given one and returns them in any collection type.
|
|
An alias for `Terminal.NewLine`.
|
|
Creates a `Nonterminal` whose productions must be later set with `SetProductions`, or it will raise an error on building. Useful for recursive productions.
|
|
Creates an `Untyped.Nonterminal` whose productions must be later set with `SetProductions`, or it will raise an error on building. Useful for recursive productions.
|
|
Creates a `DesigntimeFarkle<'T>` that recognizes `df`, which might not be found. In this case, the resulting value is `None`.
|
Full Usage:
prec token pb
Parameters:
obj
pb : ^TBuilder
Returns: ^TBuilder
Modifiers: inline Type parameters: ^TBuilder |
An alias for the `WithPrecedence` method of production builders.
|
Full Usage:
sepBy sep df
Parameters:
DesigntimeFarkle
df : DesigntimeFarkle<'a>
Returns: DesigntimeFarkle<'a list>
|
Creates a designtime Farkle that recognizes many occurrences of `df` separated by `sep` and returns them in a list.
|
Full Usage:
sepBy1 sep df
Parameters:
DesigntimeFarkle
df : DesigntimeFarkle<'a>
Returns: DesigntimeFarkle<'a list>
|
Creates a designtime Farkle that recognizes more than one occurrences of `df` separated by `sep` and returns them in a list.
|
Full Usage:
sepByCollection sep df
Parameters:
DesigntimeFarkle
df : DesigntimeFarkle<'T>
Returns: DesigntimeFarkle<'TCollection>
|
Creates a designtime Farkle that recognizes many occurrences of `df` separated by `sep` and returns them in any collection type.
|
Full Usage:
sepByCollection1 sep df
Parameters:
DesigntimeFarkle
df : DesigntimeFarkle<'T>
Returns: DesigntimeFarkle<'TCollection>
|
Creates a designtime Farkle that recognizes more than one occurrences of `df` separated by `sep` and returns them in any collection type.
|
|
Creates a terminal with the given name, specified by the given `Regex`. Its content will be post-processed by the given `T` delegate.
|
|
Creates a terminal with the given name, specified by the given `Regex`, but not returning anything.
|
|