Class Label
- Namespace
- Hegel
- Assembly
- Hegel.dll
Span labels: how the engine tells one kind of draw from another when it shrinks. A generator's Label is one of these, Of(string) a name, or a Combine(params ulong[])d label.
public static class Label
- Inheritance
-
Label
- Inherited Members
Fields
Array
An array.
public const ulong Array = 6516319197036412913
Field Value
Composite
A composite draw.
public const ulong Composite = 2947436992312376143
Field Value
Deferred
A deferred generator.
public const ulong Deferred = 13361548474957408759
Field Value
Filter
A filtered draw.
public const ulong Filter = 10758399691867166206
Field Value
FilterAttempt
One attempt of a filtered draw.
public const ulong FilterAttempt = 10045846696258358553
Field Value
FixedDict
A fixed set of keys.
public const ulong FixedDict = 5010529020816082952
Field Value
FlatMap
A generator chosen from a drawn value.
public const ulong FlatMap = 16743228985440102522
Field Value
FromLark
A Lark grammar draw.
public const ulong FromLark = 10359087412901178689
Field Value
Generator
A generator that gives no label of its own.
public const ulong Generator = 13286028886571109937
Field Value
List
A list.
public const ulong List = 5534668350891054709
Field Value
Map
A map.
public const ulong Map = 7559043781511986797
Field Value
Mapped
A mapped draw.
public const ulong Mapped = 5111325571529699938
Field Value
OneOf
A choice between generators.
public const ulong OneOf = 17969971583049514016
Field Value
Optional
An optional value.
public const ulong Optional = 5092568087352452896
Field Value
Permutation
A permutation.
public const ulong Permutation = 12693339384256486720
Field Value
PoolValuesConsumed
A consumed pool value.
public const ulong PoolValuesConsumed = 492321035988792017
Field Value
PoolValuesReusable
A reusable pool value.
public const ulong PoolValuesReusable = 9193352034248264578
Field Value
Recursive
A recursive draw.
public const ulong Recursive = 13536913276382008744
Field Value
Sample
A sample.
public const ulong Sample = 8541538703802428838
Field Value
SampledFrom
A value sampled from a sequence.
public const ulong SampledFrom = 17966895106006060151
Field Value
Set
A set.
public const ulong Set = 10122956049912890981
Field Value
StatefulRule
A stateful rule.
public const ulong StatefulRule = 13628141335024534264
Field Value
Subsequence
A subsequence.
public const ulong Subsequence = 15158503169073156895
Field Value
Tuple
A tuple.
public const ulong Tuple = 15634846703131927419
Field Value
Methods
Combine(params ulong[])
The label the engine derives from labels together.
public static ulong Combine(params ulong[] labels)
Parameters
labelsulong[]
Returns
Of(string)
The label the engine derives from name.
public static ulong Of(string name)
Parameters
namestring