Table of Contents

Class BuilderOptions

Namespace
Farkle.Builder
Assembly
Farkle.dll

Provides options to configure the process of building a grammar.

public sealed class BuilderOptions
Inheritance
BuilderOptions

Remarks

The options in this class do not affect the result of the build process.

Properties

CancellationToken

Used to cancel the build process.

public CancellationToken CancellationToken { get; set; }

Property Value

CancellationToken

LogLevel

The minimum severity of diagnostics that are reported. Defaults to Information.

public DiagnosticSeverity LogLevel { get; set; }

Property Value

DiagnosticSeverity
See Also

MaxTokenizerStates

The maximum number of states that the tokenizer can have.

public int MaxTokenizerStates { get; set; }

Property Value

int

Remarks

This value can be used to prevent exponential blowup of the tokenizer states for certain regexes like [ab]*[ab]{32}. If it is zero or negative, the limit is set to an implementation-defined number that is proportional to the complexity of the input regexes.

Events

OnDiagnostic

An event that is raised when a diagnostic is reported.

public event Action<BuilderDiagnostic>? OnDiagnostic

Event Type

Action<BuilderDiagnostic>
See Also