Files
jak-project/goalc/compiler/CodeGenerator.h
T
water111 d56540f8c0 Add lambda and static objects (#30)
* add some more tests for let

* support static strings

* add function calling

* add prints for windows debgu

* one test only

* try swapping r14 and r15 in windows

* swap back

* disable defun for now

* fix massive bug

* fix formatting
2020-09-12 13:11:42 -04:00

21 lines
353 B
C++

#ifndef JAK_CODEGENERATOR_H
#define JAK_CODEGENERATOR_H
#include "Env.h"
#include "goalc/emitter/ObjectGenerator.h"
class CodeGenerator {
public:
CodeGenerator(FileEnv* env);
std::vector<u8> run();
private:
void do_function(FunctionEnv* env, int f_idx);
emitter::ObjectGenerator m_gen;
FileEnv* m_fe;
};
#endif // JAK_CODEGENERATOR_H