code: public QueryBuilderKraken parse()
    {
      Token token = scanToken();
  
      switch (token) {
      case CREATE:
        return parseCreate();
        
      case EXPLAIN:
        return parseExplain();
  
      case INSERT:
        return parseInsert();
  
      case REPLACE:
        return parseReplace();
        
      case SELECT:
        return parseSelect();
        
      case SELECT_LOCAL:
        return parseSelectLocal();
        
      case MAP:
        return parseMap();
        
      case SHOW:
        return parseShow();
        
      case UPDATE:
        return parseUpdate();
        
      case DELETE:
        return parseDelete();
        
      case WATCH:
        return parseWatch();
        
        /*
      case NOTIFY:
        return parseNotify();
        */
  
        /*
      case VALIDATE:
        return parseValidate();
  
      case DROP:
        return parseDrop();
  */
        
      case IDENTIFIER:
        if (_lexeme.equalsIgnoreCase("checkpoint")) {
          return parseCheckpoint();
        }
        
      default:
        throw error("unknown query at {0}", token);
      }
    }
docs: Parses the query.