docs: function parse(contents, options) {
      var commands = [];
      var i;
      var line;
      var lineno;
      var lines = contents.split(/[\r?\n]/);
      var parseResult;
      var remainder = '';
      var includeComments = options && options['includeComments'];
  
      for (i = 0; i < lines.length; i++) {
          lineno = i + 1;
          if (remainder) {
              line = remainder + lines[i];
          } else {
              line = lines[i];
          }
  
          parseResult = parseLine(line, lineno);
          if (parseResult.command) {
              if (parseResult.command.name !== 'COMMENT' || includeComments) {
                  commands.push(parseResult.command);
              }
          }
          remainder = parseResult.remainder;
      }
      return commands;
  }