Functions to create `Grammar`s and `PostProcessor`s from `DesigntimeFarkle`s.
Function or value | Description |
Full Usage:
build df
Parameters:
DesigntimeFarkle<'TOutput>
Returns: Result<Grammar, BuildError list> * PostProcessor<'TOutput>
|
Creates a `Grammar` and a `PostProcessor` from a typed `DesigntimeFarkle`. The construction of the grammar may fail. In this case, the output of the post-processor is indeterminate. Using this function (and all others in this module) will always build a new grammar, even if a precompiled one is available.
|
Full Usage:
buildEx ct options df
Parameters:
CancellationToken
options : BuildOptions
df : DesigntimeFarkle<'TOutput>
Returns: Result<Grammar, BuildError list> * PostProcessor<'TOutput>
|
Creates a `Grammar` and a `PostProcessor` from a typed `DesigntimeFarkle`. The construction of the grammar may fail. In this case, the output of the post-processor is indeterminate. Using this function (and all others in this module) will always build a new grammar, even if a precompiled one is available. This function also allows the build to be cancelled and further configured.
|
Full Usage:
buildGrammarOnly grammarDef
Parameters:
GrammarDefinition
Returns: Result<Grammar, BuildError list>
|
Creates a `Grammar` from a `GrammarDefinition`.
|
Full Usage:
buildGrammarOnlyEx ct options grammarDef
Parameters:
CancellationToken
options : BuildOptions
grammarDef : GrammarDefinition
Returns: Result<Grammar, BuildError list>
|
Creates a `Grammar` from a `GrammarDefinition`. The operation can be cancelled, throwing an `OperationCanceledException`. It also accepts a `BuildOptions` object, allowing further configuration.
|
Full Usage:
buildPostProcessorOnly df
Parameters:
DesigntimeFarkle<'TOutput>
Returns: PostProcessor<'TOutput>
|
Creates a `PostProcessor` from the given `DesigntimeFarkle`. By not creating a grammar, some potentially expensive steps are skipped. This function is useful only for some very limited scenarios, such as having many designtime Farkles with an identical grammar but different post-processors.
|
|
Creates a `GrammarDefinition` from an untyped `DesigntimeFarkle`.
|