@Override
		public void visitTerminal(TerminalNode node) {
			System.out.println("consume "+node.getSymbol()+" rule "+
							   getRuleNames()[_ctx.getRuleIndex()]);
		}
This is all the parsing support code essentially; most of it is error recovery stuff.
runtime/Java/src/org/antlr/v4/runtime/Parser.java