mirror of
https://github.com/open-goal/jak-project
synced 2026-06-04 02:47:17 -04:00
9737dfad34
Resolves #19
21 lines
365 B
C++
21 lines
365 B
C++
#pragma once
|
|
|
|
#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
|