2020-12-20 13:58:10 -05:00
|
|
|
#ifndef COMPILER_H
|
|
|
|
#define COMPILER_H
|
|
|
|
#include "util.h"
|
|
|
|
#include "parser.h"
|
2020-12-21 13:05:49 -05:00
|
|
|
#include "vm-lines.h"
|
|
|
|
#include "compiler-scopes.h"
|
2020-12-20 13:58:10 -05:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
SCOPE* globalscope;
|
2020-12-21 13:05:49 -05:00
|
|
|
LINEBLOCK* output;
|
2020-12-20 13:58:10 -05:00
|
|
|
} COMPILER;
|
|
|
|
|
|
|
|
COMPILER* mkcompiler(CLASS* classes);
|
|
|
|
void compile();
|
|
|
|
|
|
|
|
#endif
|