code: public void syntaxError(String state, String event, List<String> legalEvents, String uri, Integer line) {
          formatter.syntaxError(state, event, legalEvents, uri, line);
      }
docs: Not part of the API. Used for testing only.