Expression execution seems to be working
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
|
||||
#include "Expression.h"
|
||||
#include "Parser.h"
|
||||
#include "Compiler.h"
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -40,5 +43,10 @@ int main(int argc, char **argv) {
|
||||
shared_ptr<Expression> expression = parser.getExpression();
|
||||
cout << expression->toString() << endl;
|
||||
|
||||
Compiler compiler(expression);
|
||||
compiler.getModule();
|
||||
shared_ptr<llvm::Module> module = compiler.getModule();
|
||||
module->print(llvm::outs(), nullptr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user