function gen(node) {
  if (node && !generator[node.type]) {
    throw new Error(`${node.type} is not supported in NFA/DFA interpreter.`);
  }

  return node ? generator[node.type](node) : '';
}
function gen(node) {
  if (node && !generator[node.type]) {
    throw new Error(`${node.type} is not supported in NFA/DFA interpreter.`);
  }

  return node ? generator[node.type](node) : '';
}
function gen ( node ) { if ( node && ! generator [ node . type ] ) { throw new Error ( ` ${ node . type } ` ) ; } return node ? generator [ node . type ] ( node ) : '' ; }
Helper `gen` function calls node type handler.
Helper gen function calls node type handler .