jack-compiler/compiler/compiler.h

15 lines
280 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 {
2020-12-24 14:22:22 -05:00
CLASS* classes;
2020-12-20 13:58:10 -05:00
SCOPE* globalscope;
} COMPILER;
COMPILER* mkcompiler(CLASS* classes);
2020-12-29 19:27:48 -05:00
LINEBLOCK* compileclass(COMPILER* c, CLASS* class);
2020-12-20 13:58:10 -05:00
#endif