Table of Contents

Class LexerPredicateEvaluationContext

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

Describes one lexer predicate evaluation request.

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

Constructors

LexerPredicateEvaluationContext(Rule, string, int, int)

Describes one lexer predicate evaluation request.

public LexerPredicateEvaluationContext(Rule Rule, string PredicateCode, int AlternativeIndex, int ElementIndex)

Parameters

Rule Rule

Lexer rule that owns the predicate.

PredicateCode string

Raw predicate code without ANTLR braces and trailing question mark.

AlternativeIndex int

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

ElementIndex int

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

Properties

AlternativeIndex

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

public int AlternativeIndex { get; init; }

Property Value

int

ElementIndex

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

public int ElementIndex { get; init; }

Property Value

int

PredicateCode

Raw predicate code without ANTLR braces and trailing question mark.

public string PredicateCode { get; init; }

Property Value

string

Rule

Lexer rule that owns the predicate.

public Rule Rule { get; init; }

Property Value

Rule