Antlr.Runtime.BaseRecognizer.GetRuleInvocationStack C# (CSharp) Method

GetRuleInvocationStack() public method

* Return IList{T} of the rules in your parser instance * leading up to a call to this method. You could override if * you want more details such as the file/line info of where * in the parser java code a rule is invoked. *
* This is very useful for error messages and for context-sensitive * error recovery. *
public GetRuleInvocationStack ( ) : IList
return IList
        public virtual IList<string> GetRuleInvocationStack()
        {
            return GetRuleInvocationStack( new StackTrace(true) );
        }

Same methods

BaseRecognizer::GetRuleInvocationStack ( System.Diagnostics.StackTrace trace ) : IList

Usage Example

Beispiel #1
0
 public virtual IList <string> GetRuleInvocationStack()
 {
     return(BaseRecognizer.GetRuleInvocationStack(new StackTrace(true)));
 }