Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 314 Bytes
#include <iostream>
#include "codegen.h"
#include "node.h"
using namespace std;
extern int yyparse();
extern NBlock* programBlock;
int main(int argc, char **argv)
{
yyparse();
std::cout << programBlock << endl;
CodeGenContext context;
context.generateCode(*programBlock);
context.runCode();
return 0;
}