20 lines
340 B
C++
20 lines
340 B
C++
#include "parser.h"
|
|
#include "BfLexer.h"
|
|
#include "generator.h"
|
|
#include "instruction.h"
|
|
#include <iostream>
|
|
#include <fstream>
|
|
using namespace std;
|
|
using namespace bf;
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
ifstream file(argv[1]);
|
|
BfLexer lex(file);
|
|
Parser parser(lex);
|
|
Generator gen(*(parser.parse()));
|
|
gen.run();
|
|
|
|
return 0;
|
|
}
|