// tokenizer.cc    Read one character at a time and report tokens
// P. Conrad for CISC220,06J

#include <iostream>
#include <fstream>
#include <string>

#include "Tokenizer.h"

using namespace std;

int main(int argc, char *argv[])
{
  if (argc != 2)
    {
      cerr << "Usage: " << argv[0] << " inputFileName " << endl;
      exit(1);
    }

  string inputFileName(argv[1]);
  ifstream inf(inputFileName.c_str());

  if (!inf)
    {
      cerr << "Error opening file " << inputFileName << endl;
      exit(2);
    }

  Tokenizer_C t(inf,cout);
  t.tokenize();


  return 0;
}

