Extension methods for DesigntimeFarkles.
Most of these methods must be applied to the topmost designtime Farkle that will eventually be built. Use Cast first to use these functions on untyped designtime Farkles.
Static member | Description | ||
Full Usage:
DesigntimeFarkleExtensions.AddBlockComment(df, commentStart, commentEnd)
Parameters:
'T
commentStart : string
commentEnd : string
Returns: 'T
|
|
||
Full Usage:
DesigntimeFarkleExtensions.AddLineComment(df, commentStart)
Parameters:
'T
commentStart : string
Returns: 'T
|
|||
Full Usage:
DesigntimeFarkleExtensions.AddNoiseSymbol(df, name, regex)
Parameters:
'T
name : string
regex : Regex
Returns: 'T
|
Adds a symbol specified by the given Regex that will be ignored in input text, to the given DesigntimeFarkle.
|
||
Full Usage:
DesigntimeFarkleExtensions.AutoWhitespace(df, x)
Parameters:
'T
x : bool
Returns: 'T
|
|
||
Full Usage:
DesigntimeFarkleExtensions.Build(df, ?ct, ?options)
Parameters:
DesigntimeFarkle<'TResult>
-
The designtime Farkle to build.
?ct : CancellationToken
-
Used to cancel the operation.
?options : BuildOptions
-
Additional options to configure the process.
Returns: RuntimeFarkle<'TResult>
|
|
||
Full Usage:
DesigntimeFarkleExtensions.BuildUntyped(df, ?ct, ?options)
Parameters:
DesigntimeFarkle
-
The designtime Farkle to build.
?ct : CancellationToken
-
Used to cancel the operation.
?options : BuildOptions
-
Additional options to configure the process.
Returns: RuntimeFarkle<obj>
|
|
||
Full Usage:
DesigntimeFarkleExtensions.CaseSensitive(df, ?x)
Parameters:
'T
?x : bool
Returns: 'T
|
|||
Full Usage:
DesigntimeFarkleExtensions.Cast(df)
Parameters:
DesigntimeFarkle
Returns: DesigntimeFarkle<obj>
|
|||
Full Usage:
DesigntimeFarkleExtensions.Many(df, ?atLeastOne)
Parameters:
DesigntimeFarkle<'TResult>
-
The designtime Farkle to recognize many times.
?atLeastOne : bool
-
Whether at least one occurrence
is required. Defaults to false.
Returns: DesigntimeFarkle<'TCollection>
|
Creates a new DesigntimeFarkle{TCollection} that recognizes many occurrences of the given DesigntimeFarkle{TResult}.
|
||
Full Usage:
DesigntimeFarkleExtensions.Nullable(df)
Parameters:
DesigntimeFarkle<'TResult>
Returns: DesigntimeFarkle<Nullable<'TResult>>
|
|||
Full Usage:
DesigntimeFarkleExtensions.Optional(df)
Parameters:
DesigntimeFarkle<'TResult>
Returns: DesigntimeFarkle<'TResult>
|
Creates a new DesigntimeFarkle{TResult} that might recognize the given one, or not. In the latter case, it returns the default value of the result type.
|
||
Full Usage:
DesigntimeFarkleExtensions.Rename(df, name)
Parameters:
'T
name : string
Returns: 'T
|
Useful for diagnostic purposes.
|
||
Full Usage:
DesigntimeFarkleExtensions.Select(df, f)
Parameters:
DesigntimeFarkle<'TResult>
f : Func<'TResult, 'TConverted>
Returns: DesigntimeFarkle<'TConverted>
|
Creates a new DesigntimeFarkle{TResult} that transforms the output of the given one with the given delegate.
|
||
Full Usage:
DesigntimeFarkleExtensions.SeparatedBy(df, separator, ?atLeastOne)
Parameters:
DesigntimeFarkle<'TResult>
-
The designtime Farkle to recognize many times.
separator : DesigntimeFarkle
-
The designtime Farkle that
separates instances of df.
?atLeastOne : bool
-
Whether at least one occurrence
is required. Defaults to false.
Returns: DesigntimeFarkle<'TCollection>
|
Creates a new DesigntimeFarkle{TCollection} that recognizes many occurrences of the given DesigntimeFarkle{TResult}, separated by another DesigntimeFarkle.
|
||
Full Usage:
DesigntimeFarkleExtensions.WithMetadata(df, metadata)
Parameters:
'T
metadata : GrammarMetadata
Returns: 'T
|
|||
Full Usage:
DesigntimeFarkleExtensions.WithOperatorScope(df, opScope)
Parameters:
'T
opScope : OperatorScope
Returns: 'T
|