Table of Contents

Class LexerActionExecutionContext

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

Describes one accepted lexer inline action execution request.

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

Constructors

LexerActionExecutionContext(Rule, string, int, int, string, string, string, string, int, int)

Describes one accepted lexer inline action execution request.

public LexerActionExecutionContext(Rule Rule, string ActionCode, int AlternativeIndex, int ElementIndex, string Text, string TokenType, string Channel, string Mode, int Line, int Column)

Parameters

Rule Rule

Lexer rule that owns the action.

ActionCode string

Raw action code without ANTLR braces.

AlternativeIndex int

Best-effort deterministic alternative index, or -1 when not represented.

ElementIndex int

Best-effort deterministic element index, or -1 when not represented.

Text string

Accepted token or chunk text available to the accepted lexer action context.

TokenType string

Token type available to the accepted lexer action context before lexer commands are applied.

Channel string

Token channel available to the accepted lexer action context before lexer commands are applied.

Mode string

Lexer mode available to the accepted lexer action context.

Line int

One-based source line at the start of the accepted token or chunk.

Column int

One-based source column at the start of the accepted token or chunk.

Properties

ActionCode

Raw action code without ANTLR braces.

public string ActionCode { get; init; }

Property Value

string

AlternativeIndex

Best-effort deterministic alternative index, or -1 when not represented.

public int AlternativeIndex { get; init; }

Property Value

int

Channel

Token channel available to the accepted lexer action context before lexer commands are applied.

public string Channel { get; init; }

Property Value

string

Column

One-based source column at the start of the accepted token or chunk.

public int Column { get; init; }

Property Value

int

ElementIndex

Best-effort deterministic element index, or -1 when not represented.

public int ElementIndex { get; init; }

Property Value

int

Line

One-based source line at the start of the accepted token or chunk.

public int Line { get; init; }

Property Value

int

Mode

Lexer mode available to the accepted lexer action context.

public string Mode { get; init; }

Property Value

string

Rule

Lexer rule that owns the action.

public Rule Rule { get; init; }

Property Value

Rule

Text

Accepted token or chunk text available to the accepted lexer action context.

public string Text { get; init; }

Property Value

string

TokenType

Token type available to the accepted lexer action context before lexer commands are applied.

public string TokenType { get; init; }

Property Value

string