lib/parser.js
function scan(str, re) {
  var match = null;
  var ret = [];

  while (match = re.exec(str)) {
    ret.push(match);
  }

  return ret;
}
function scan(str, re) {
  var match = null;
  var ret = [];

  while (match = re.exec(str)) {
    ret.push(match);
  }

  return ret;
}
function scan ( str , re ) { var match = null ; var ret = [ ] ; while ( match = re . exec ( str ) ) { ret . push ( match ) ; } return ret ; }
Scan `str` with `re`.

@param {String} str
@param {RegExp} re
@returns {Array}
@private
Scan str with re .