@Override
	public void setTokenFactory(TokenFactory<?> factory) {
		_input.getTokenSource().setTokenFactory(factory);
	}
Tell our token source and error strategy about a new way to create tokens.
runtime/Java/src/org/antlr/v4/runtime/Parser.java