Class Alternative
A single alternative inside an Alternation, with its priority, associativity, content, and optional label.
public record Alternative : RuleContent, IEquatable<RuleContent>, IEquatable<Alternative>
- Inheritance
-
Alternative
- Implements
- Inherited Members
- Extension Methods
Constructors
Alternative(int, Associativity, RuleContent, string?)
A single alternative inside an Alternation, with its priority, associativity, content, and optional label.
public Alternative(int Priority, Associativity Assoc, RuleContent Content, string? Label = null)
Parameters
PriorityintAssocAssociativityContentRuleContentLabelstring
Properties
Assoc
public Associativity Assoc { get; init; }
Property Value
Content
public RuleContent Content { get; init; }
Property Value
Label
public string? Label { get; init; }
Property Value
Priority
public int Priority { get; init; }