Parser.getRuleInvocationStack

@uml Return List<String> of the rule names in your parser instance leading up to a call to the current rule. You could override if you want more details such as the file/line info of where in the ATN a rule is invoked.

This is very useful for error messages.

  1. string[] getRuleInvocationStack()
    class Parser
    string[]
    getRuleInvocationStack
    ()
  2. string[] getRuleInvocationStack(RuleContext p)

Meta