code: public static Token create(TokenType type, Position pos) {
          Token result = new Token();
          result.type = type;
          result.line = pos.getLine();
          result.pos = pos.getPos();
  
          return result;
      }
docs: Creates a new token with the given type, using the given position as location info.
  
  @param type the type if this token. Can be further specified by supplying a trigger.
  @param pos  the location of this token
  @return a new token which can be filled with content and trigger infos