/* this program parses input in set format and tells what the elements 
 * and subsets are.
 *
 * The idea is that every thing in a set is an object - sets are objects, 
 * elements are objects, and subsets are merely other sets.  This allows 
 * great versatility in implementing more complex functions, such as 
 * computing the union or intersection of two or more sets.
 * 
 * Element and subset objects are stored in arrays in a set.
 */

#include "set3.h"
using namespace mine;

//int main(int argc, char *argv[]) {
int main() {  
  char input[MAX_ELEMENTS];
  Set *set;

  cin >> input;

  int elements = set->get_elements(input, set);
  if (elements) {
    cout <<elements <<" elements\n";
    set->print_elements(set);
    set->print_subsets(set);
  }
  else cout <<"couldn't parse set.\n";
  return 0;

}

