void append(StringBuilder str, TerminalNode start, TerminalNode stop) {
    String text = start.getSymbol().getInputStream().getText(new org.antlr.v4.runtime.misc.Interval(start.getSymbol().getStartIndex(), stop.getSymbol().getStopIndex()));
    str.append(text);
  }
Append the text preserving the formatting (space symbols) between tokens
hplsql/src/main/java/org/apache/hive/hplsql/Exec.java