diff options
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/generator.h b/src/generator.h index d2ad5c2..20a83f9 100644 --- a/src/generator.h +++ b/src/generator.h | |||
@@ -20,6 +20,7 @@ void gen_const_declaration(); | |||
20 | void gen_const(const char name[], int value, Scope scope); | 20 | void gen_const(const char name[], int value, Scope scope); |
21 | 21 | ||
22 | Type gen_function_declaration(const char name[], int return_type); | 22 | Type gen_function_declaration(const char name[], int return_type); |
23 | void gen_tab_declaration(const char name[], Scope scope, int size); | ||
23 | void gen_function_end_declaration(const char name[], int return_type, int nb_param); | 24 | void gen_function_end_declaration(const char name[], int return_type, int nb_param); |
24 | void gen_function_return(Type expect, Type actual); | 25 | void gen_function_return(Type expect, Type actual); |
25 | Type gen_function_call(const char name[], int nb_param); | 26 | Type gen_function_call(const char name[], int nb_param); |
@@ -38,6 +39,8 @@ void gen_if_end(int idx); | |||
38 | void gen_ifelse_end(int idx); | 39 | void gen_ifelse_end(int idx); |
39 | 40 | ||
40 | int gen_assign(const char ident[], Scope scope); | 41 | int gen_assign(const char ident[], Scope scope); |
42 | int gen_assign_tab(const char ident[], Scope scope); | ||
43 | |||
41 | void gen_or(int left, int right, int idx); | 44 | void gen_or(int left, int right, int idx); |
42 | void gen_and(int left, int right, int idx); | 45 | void gen_and(int left, int right, int idx); |
43 | void gen_eq(const char op[], int left, int right, int idx); | 46 | void gen_eq(const char op[], int left, int right, int idx); |
@@ -48,6 +51,8 @@ void gen_divstar(char op, int left, int right); | |||
48 | int gen_signed_expr(char op, int type); | 51 | int gen_signed_expr(char op, int type); |
49 | int gen_negate_expr(int type); | 52 | int gen_negate_expr(int type); |
50 | int gen_value(const char ident[], Scope scope); | 53 | int gen_value(const char ident[], Scope scope); |
54 | int gen_value_tab(const char ident[], Scope scope); | ||
55 | |||
51 | int gen_num(int value, Scope scope); | 56 | int gen_num(int value, Scope scope); |
52 | int gen_char(int value, Scope scope); | 57 | int gen_char(int value, Scope scope); |
53 | 58 | ||