Class ParseNode
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
SpanSourceSpanModeNamestringRuleRule
Properties
ModeName
public string ModeName { get; init; }
Property Value
Rule
public Rule Rule { get; init; }
Property Value
Span
public SourceSpan Span { get; init; }