Table of Contents

Class LeftRecursiveRuleInfo

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

Describes a parser rule that uses direct left recursion and how its alternatives are split for seed parsing and left-push extension.

public sealed record LeftRecursiveRuleInfo : IEquatable<LeftRecursiveRuleInfo>
Inheritance
LeftRecursiveRuleInfo
Implements
Inherited Members
Extension Methods

Properties

BaseAlternatives

Gets an immutable snapshot of alternatives usable as initial seed nodes.

public required IReadOnlyList<Alternative> BaseAlternatives { get; init; }

Property Value

IReadOnlyList<Alternative>

RecursiveAlternatives

Gets an immutable snapshot of direct left-recursive alternatives.

public required IReadOnlyList<Alternative> RecursiveAlternatives { get; init; }

Property Value

IReadOnlyList<Alternative>

Rule

Gets the parser rule described by this entry.

public required Rule Rule { get; init; }

Property Value

Rule