public void visitTerminal(TerminalNode node) {System.out.println("consume "+node.getSymbol()+" rule "+getRuleNames()[_ctx.getRuleIndex()]);}
public virtual void VisitTerminal(ITerminalNode node){ParserRuleContext parent = (ParserRuleContext)((IRuleNode)node.Parent).RuleContext;IToken token = node.Symbol;Output.WriteLine("consume " + token + " rule " + this._enclosing.RuleNames[parent.RuleIndex]);}