Table of Contents

Class ParserActionExecutionContext

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

Immutable action execution data passed to IParserActionExecutor.

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

Constructors

ParserActionExecutionContext(Rule, RuleContent, string, int, int, int)

Immutable action execution data passed to IParserActionExecutor.

public ParserActionExecutionContext(Rule Rule, RuleContent Action, string ActionCode, int InputPosition, int AlternativeIndex, int ElementIndex)

Parameters

Rule Rule

Current parser rule.

Action RuleContent

Action model node.

ActionCode string

Raw action code.

InputPosition int

Current parser input position.

AlternativeIndex int

Current alternative index.

ElementIndex int

Current element index within the alternative.

Properties

Action

Action model node.

public RuleContent Action { get; init; }

Property Value

RuleContent

ActionCode

Raw action code.

public string ActionCode { get; init; }

Property Value

string

AlternativeIndex

Current alternative index.

public int AlternativeIndex { get; init; }

Property Value

int

ElementIndex

Current element index within the alternative.

public int ElementIndex { get; init; }

Property Value

int

InputPosition

Current parser input position.

public int InputPosition { get; init; }

Property Value

int

Rule

Current parser rule.

public Rule Rule { get; init; }

Property Value

Rule