code: public static TsurgeonPattern getTsurgeonOperationsFromReader(BufferedReader reader) throws IOException {
      List<TsurgeonPattern> operations = new ArrayList<TsurgeonPattern>();
      for (String thisLine; (thisLine = reader.readLine()) != null; ) {
        if (emptyLinePattern.matcher(thisLine).matches()) {
          break;
        }
        thisLine = removeComments(thisLine);
        if (emptyLinePattern.matcher(thisLine).matches()) {
          continue;
        }
        // System.err.println("Read tsurgeon op: " + thisLine);
        operations.add(parseOperation(thisLine));
      }
      return collectOperations(operations);
    }
docs: Assumes the given reader has only tsurgeon operations (not a tregex pattern), and parses
  these out, collecting them into one operation.  Stops on a whitespace line.
  
  @throws IOException