jack-compiler/compiler.h

16 lines
259 B
C
Raw Normal View History

2020-12-20 13:58:10 -05:00
#ifndef COMPILER_H
#define COMPILER_H
2020-12-21 13:05:49 -05:00
#include "compiler-scopes.h"
2020-12-21 19:56:59 -05:00
#include "parser-tree.h"
#include "vm-lines.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);
2020-12-22 11:18:54 -05:00
void compile(COMPILER* c);
2020-12-20 13:58:10 -05:00
#endif