C# 클래스 Antlr4.Runtime.InterpreterRuleContext

This class extends ParserRuleContext by allowing the value of RuleIndex() to be explicitly set for the context.

ParserRuleContext does not include field storage for the rule index since the context classes created by the code generator override the RuleIndex() method to return the correct value for that context. Since the parser interpreter does not use the context classes generated for a parser, this class (with slightly more memory overhead per node) is used to provide equivalent functionality.

상속: ParserRuleContext
파일 보기 프로젝트 열기: antlr/antlr4 1 사용 예제들

공개 메소드들

메소드 설명
InterpreterRuleContext ( ParserRuleContext parent, int invokingStateNumber, int ruleIndex ) : Antlr4.Runtime

Constructs a new InterpreterRuleContext with the specified parent, invoking state, and rule index.

메소드 상세

InterpreterRuleContext() 공개 메소드

Constructs a new InterpreterRuleContext with the specified parent, invoking state, and rule index.
public InterpreterRuleContext ( ParserRuleContext parent, int invokingStateNumber, int ruleIndex ) : Antlr4.Runtime
parent ParserRuleContext The parent context.
invokingStateNumber int The invoking state number.
ruleIndex int The rule index for the current context.
리턴 Antlr4.Runtime