aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/generator.h')
-rw-r--r--src/generator.h5
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();
20void gen_const(const char name[], int value, Scope scope); 20void gen_const(const char name[], int value, Scope scope);
21 21
22Type gen_function_declaration(const char name[], int return_type); 22Type gen_function_declaration(const char name[], int return_type);
23void gen_tab_declaration(const char name[], Scope scope, int size);
23void gen_function_end_declaration(const char name[], int return_type, int nb_param); 24void gen_function_end_declaration(const char name[], int return_type, int nb_param);
24void gen_function_return(Type expect, Type actual); 25void gen_function_return(Type expect, Type actual);
25Type gen_function_call(const char name[], int nb_param); 26Type gen_function_call(const char name[], int nb_param);
@@ -38,6 +39,8 @@ void gen_if_end(int idx);
38void gen_ifelse_end(int idx); 39void gen_ifelse_end(int idx);
39 40
40int gen_assign(const char ident[], Scope scope); 41int gen_assign(const char ident[], Scope scope);
42int gen_assign_tab(const char ident[], Scope scope);
43
41void gen_or(int left, int right, int idx); 44void gen_or(int left, int right, int idx);
42void gen_and(int left, int right, int idx); 45void gen_and(int left, int right, int idx);
43void gen_eq(const char op[], int left, int right, int idx); 46void gen_eq(const char op[], int left, int right, int idx);
@@ -48,6 +51,8 @@ void gen_divstar(char op, int left, int right);
48int gen_signed_expr(char op, int type); 51int gen_signed_expr(char op, int type);
49int gen_negate_expr(int type); 52int gen_negate_expr(int type);
50int gen_value(const char ident[], Scope scope); 53int gen_value(const char ident[], Scope scope);
54int gen_value_tab(const char ident[], Scope scope);
55
51int gen_num(int value, Scope scope); 56int gen_num(int value, Scope scope);
52int gen_char(int value, Scope scope); 57int gen_char(int value, Scope scope);
53 58