Table of Contents

Class GrammarExtensionBinding

Namespace
Utils.Parser.Model
Assembly
Utils.Parser.dll

Binds a grammar declared superClass to runtime lexer extensions.

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

Properties

AppliesTo

Grammar type to which the binding applies.

public GrammarType AppliesTo { get; init; }

Property Value

GrammarType

DeclaredChannels

Gets an immutable ordinal set of declared channels.

public IReadOnlySet<string> DeclaredChannels { get; init; }

Property Value

IReadOnlySet<string>

DeclaredTokens

Gets an immutable ordinal set of declared tokens.

public IReadOnlySet<string> DeclaredTokens { get; init; }

Property Value

IReadOnlySet<string>

GrammarName

Grammar name declaring the binding.

public string GrammarName { get; init; }

Property Value

string

LexerRuleNames

Gets an immutable ordinal set of lexer rules declared by the grammar.

public IReadOnlySet<string> LexerRuleNames { get; init; }

Property Value

IReadOnlySet<string>

SuperClassName

Name of the declared ANTLR superClass.

public string SuperClassName { get; init; }

Property Value

string