Table of Contents

Class Alternation

Namespace
Utils.Parser.Model
Assembly
Utils.Parser.dll

A set of mutually exclusive alternatives: A | B | C. This is the top-level content of every Rule.

public record Alternation : RuleContent, IEquatable<RuleContent>, IEquatable<Alternation>
Inheritance
Alternation
Implements
Inherited Members
Extension Methods

Constructors

Alternation(IReadOnlyList<Alternative>)

A set of mutually exclusive alternatives: A | B | C. This is the top-level content of every Rule.

public Alternation(IReadOnlyList<Alternative> Alternatives)

Parameters

Alternatives IReadOnlyList<Alternative>

Properties

Alternatives

Gets the immutable ordered snapshot of alternatives.

public IReadOnlyList<Alternative> Alternatives { get; init; }

Property Value

IReadOnlyList<Alternative>