Table of Contents

Class ParseNode

Namespace
Utils.Parser.Runtime
Assembly
Utils.Parser.dll

Abstract base for all nodes in a parse tree produced by ParserEngine. Every node records the source span it covers, the active lexer mode, and the grammar rule that produced it.

public abstract record ParseNode : IEquatable<ParseNode>
Inheritance
ParseNode
Implements
Derived
Inherited Members
Extension Methods

Constructors

ParseNode(SourceSpan, string, Rule)

Abstract base for all nodes in a parse tree produced by ParserEngine. Every node records the source span it covers, the active lexer mode, and the grammar rule that produced it.

protected ParseNode(SourceSpan Span, string ModeName, Rule Rule)

Parameters

Span SourceSpan
ModeName string
Rule Rule

Properties

ModeName

public string ModeName { get; init; }

Property Value

string

Rule

public Rule Rule { get; init; }

Property Value

Rule

Span

public SourceSpan Span { get; init; }

Property Value

SourceSpan