Table of Contents

Class Alternative

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

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

Priority int
Assoc Associativity
Content RuleContent
Label string

Properties

Assoc

public Associativity Assoc { get; init; }

Property Value

Associativity

Content

public RuleContent Content { get; init; }

Property Value

RuleContent

Label

public string? Label { get; init; }

Property Value

string

Priority

public int Priority { get; init; }

Property Value

int