Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 465 Bytes
#include <iostream>
#include "gen.h"
#include "ast.h"
using namespace std;
extern int yyparse();
extern NBlock *programBlock;
int main(int argc, char **argv) {
yyparse();
cout << programBlock << endl;
InitializeNativeTarget();
InitializeNativeTargetAsmPrinter();
InitializeNativeTargetAsmParser();
CodeGenContext context;
context.generateCode(*programBlock);
context.runCode();
std::cout << "Exiting...\n";
return 0;
}
You can’t perform that action at this time.