#include "lex.h" #include "parse.h" #include using namespace std; void run() { advance(); vector program; do { Statement* s = new Statement(); s->execute(); // s->debugPrint(); program.push_back(s); } while (current.type != END); for (unsigned int i = 0; i < program.size(); ++i) { delete program[i]; } } int main(int argc, char** argv) { if (argc > 1) { set_input(argv[1]); run(); } else { cout << "Error: no input files" << endl; } }