src/NFA.js
function structure(a) {
  a.accepts=a.accepts.split(',');
  var ts=a.trans,
      i=ts.length,t,s,from,to;
  while (i--) {
    t=ts[i];
    s=t[0].split('>');
    from=s[0].split(',');
    to=s[1].split(',');
    ts[i]={from:from,to:to,charset:t[1],action:t[2],assert:t[3]};
  }
  a.compact=false;
  return a;
}
function structure(a) {
  a.accepts=a.accepts.split(',');
  var ts=a.trans,
      i=ts.length,t,s,from,to;
  while (i--) {
    t=ts[i];
    s=t[0].split('>');
    from=s[0].split(',');
    to=s[1].split(',');
    ts[i]={from:from,to:to,charset:t[1],action:t[2],assert:t[3]};
  }
  a.compact=false;
  return a;
}
function structure ( a ) { a . accepts = a . accepts . split ( ',' ) ; var ts = a . trans , i = ts . length , t , s , from , to ; while ( i -- ) { t = ts [ i ] ; s = t [ 0 ] . split ( '>' ) ; from = s [ 0 ] . split ( ',' ) ; to = s [ 1 ] . split ( ',' ) ; ts [ i ] = { from : from , to : to , charset : t [ 1 ] , action : t [ 2 ] , assert : t [ 3 ] } ; } a . compact = false ; return a ; }
Convert CompactNFAConfig to NFAConfig
@param {CompactNFAConfig} a
type CompactNFAConfig={compact:true,accepts:CompactStateSet,trans:[CompactTransition]}
type CompactStateSet = StateSet.join(",")
type CompactTransition = [CompactStateMap,Charset,Action,Assert]
type CompactStateMap = FromStateSet.join(",")+">"+ToStateSet.join(",")
Convert CompactNFAConfig to NFAConfig