Table of Contents

Class LexerCommand

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

A structured lexer command such as -> skip, -> channel(HIDDEN), or -> pushMode(MyMode). Unlike EmbeddedAction, these commands have direct runtime semantics and are not opaque code.

public record LexerCommand : RuleContent, IEquatable<RuleContent>, IEquatable<LexerCommand>
Inheritance
LexerCommand
Implements
Inherited Members
Extension Methods

Constructors

LexerCommand(LexerCommandType, string?)

A structured lexer command such as -> skip, -> channel(HIDDEN), or -> pushMode(MyMode). Unlike EmbeddedAction, these commands have direct runtime semantics and are not opaque code.

public LexerCommand(LexerCommandType Type, string? Argument)

Parameters

Type LexerCommandType
Argument string

Properties

Argument

public string? Argument { get; init; }

Property Value

string

Type

public LexerCommandType Type { get; init; }

Property Value

LexerCommandType