diff options
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/generator.h b/src/generator.h index 41a769a..6c132fd 100644 --- a/src/generator.h +++ b/src/generator.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define __GENERATOR_H__ | 7 | #define __GENERATOR_H__ |
8 | 8 | ||
9 | #include <stdio.h> | 9 | #include <stdio.h> |
10 | #include <stdbool.h> | ||
10 | #include "symbol_table.h" | 11 | #include "symbol_table.h" |
11 | 12 | ||
12 | typedef enum scope { | 13 | typedef enum scope { |
@@ -21,10 +22,13 @@ FILE *output; | |||
21 | void gen_prologue(); | 22 | void gen_prologue(); |
22 | void gen_prologue_continue(int *bss_done); | 23 | void gen_prologue_continue(int *bss_done); |
23 | void gen_const_declaration(); | 24 | void gen_const_declaration(); |
25 | void gen_const(const char name[], int value, Scope scope); | ||
26 | |||
24 | Type gen_function_declaration(const char name[], int return_type); | 27 | Type gen_function_declaration(const char name[], int return_type); |
25 | void gen_function_end_declaration(const char name[], int return_type, int nb_param); | 28 | void gen_function_end_declaration(const char name[], int return_type, int nb_param); |
26 | void gen_function_return(Type expect, Type actual); | 29 | void gen_function_return(Type expect, Type actual); |
27 | Type gen_function_call(const char name[], int nb_param); | 30 | Type gen_function_call(const char name[], int nb_param); |
31 | |||
28 | void gen_declaration(const char name[], int type, Scope scope); | 32 | void gen_declaration(const char name[], int type, Scope scope); |
29 | void gen_check(const char name[], Scope scope); | 33 | void gen_check(const char name[], Scope scope); |
30 | 34 | ||