Class LexerCommand
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
TypeLexerCommandTypeArgumentstring
Properties
Argument
public string? Argument { get; init; }
Property Value
Type
public LexerCommandType Type { get; init; }