C# 클래스 Antlr4.Runtime.Atn.LexerCustomAction

Executes a custom lexer action by calling Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int) with the rule and action indexes assigned to the custom action. The implementation of a custom action is added to the generated code for the lexer in an override of Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int) when the grammar is compiled.

This class may represent embedded actions created with the {...} syntax in ANTLR 4, as well as actions created for lexer commands where the command argument could not be evaluated when the grammar was compiled.

상속: ILexerAction
파일 보기 프로젝트 열기: sharwell/antlr4cs 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( object obj ) : bool
Execute ( Lexer lexer ) : void

Custom actions are implemented by calling Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int) with the appropriate rule and action indexes.

GetHashCode ( ) : int
LexerCustomAction ( int ruleIndex, int actionIndex ) : Antlr4.Runtime

Constructs a custom lexer action with the specified rule and action indexes.

메소드 상세

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

Execute() 공개 메소드

Custom actions are implemented by calling Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int) with the appropriate rule and action indexes.

public Execute ( Lexer lexer ) : void
lexer Lexer
리턴 void

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

LexerCustomAction() 공개 메소드

Constructs a custom lexer action with the specified rule and action indexes.
public LexerCustomAction ( int ruleIndex, int actionIndex ) : Antlr4.Runtime
ruleIndex int /// The rule index to use for calls to /// /// . ///
actionIndex int /// The action index to use for calls to /// /// . ///
리턴 Antlr4.Runtime