hask-opt/Interpreter.cpp
// build the argv linked list from stdio.
build the argv linked list from stdio.
build the argv linked list from stdio .
InterpValue buildArgv(const Pass::ListOption<std::string> &ss) {
  InterpValue tail = InterpValue::constructor("0", {});
  for (int i = ss.size() - 1; i >= 0; i--) {
    tail = InterpValue::constructor("1", {InterpValue::s(ss[i]), tail});
  }
  return tail;
}
InterpValue buildArgv ( const Pass :: ListOption < std :: string > & ss ) { InterpValue tail = InterpValue :: constructor ( " " , { } ) ; for ( int i = ss . size ( ) - 1 ; i >= 0 ; i -- ) { tail = InterpValue :: constructor ( " " , { InterpValue :: s ( ss [ i ] ) , tail } ) ; } return tail ; }
build the argv linked list from stdio.
build the argv linked list from stdio .
// List.nil -> ... ; List.cons -> ... ;