-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphases.h
28 lines (20 loc) · 934 Bytes
/
phases.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* parse phase defined in runoff.yacc */
AstNode *parse(char *file);
/* pretty print phase defined in prettyprint.c */
char *prettyprint(AstNode *tree);
/* Building of the symbol table defined in buildsymboltable.c */
int buildSymbolTable(AstNode *tree);
/* Checking for type errors defined in typechecker.c */
int typeCheck(AstNode *tree);
/* A phase for other contextual constraints defined in constraints.c */
int contextualConstraintsCheck(AstNode *tree);
/* Check that all vars + functions are used */
int checkused(AstNode *tree);
/* Make sure the tree contains no variable declarations inside expressions.
defined in removeNestedDecls.c */
void removeNestedDecls(AstNode *tree);
/* Initialize all variables that can have a default value, but isn't
initialized explicitly. Defined in initializeVars.c */
void initializeVars(AstNode *tree);
/* Code generation defined ind codegen.c */
char *codegen(AstNode *tree);