26 lines
374 B
C++
26 lines
374 B
C++
#ifndef ZIG_CODEGEN_HPP
|
|
#define ZIG_CODEGEN_HPP
|
|
|
|
#include "parser.hpp"
|
|
|
|
struct CodeGen;
|
|
|
|
struct ErrorMsg {
|
|
int line_start;
|
|
int column_start;
|
|
int line_end;
|
|
int column_end;
|
|
Buf *msg;
|
|
};
|
|
|
|
|
|
CodeGen *create_codegen(AstNode *root);
|
|
|
|
void semantic_analyze(CodeGen *g);
|
|
|
|
void code_gen(CodeGen *g);
|
|
|
|
ZigList<ErrorMsg> *codegen_error_messages(CodeGen *g);
|
|
|
|
#endif
|