aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/generator.h')
-rw-r--r--src/generator.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/generator.h b/src/generator.h
index 9d6dd65..e1fd714 100644
--- a/src/generator.h
+++ b/src/generator.h
@@ -15,23 +15,23 @@ extern int lineno;
15FILE *output; 15FILE *output;
16 16
17void gen_prologue(); 17void gen_prologue();
18void gen_prologue_continue(int *bss_done); 18void gen_prologue_continue(bool *bss_done);
19void gen_epilogue(); 19void gen_epilogue();
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_tab_declaration(const char name[], Scope scope, int size);
24void gen_function_end_declaration(const char name[], int return_type, int nb_param); 24void gen_function_end_declaration(const char name[], Type return_type, int nb_param);
25void gen_function_return(Type expect, Type actual); 25void gen_function_return(Type expect, Type actual);
26Type gen_function_call(const char name[], int nb_param); 26Type gen_function_call(const char name[], int nb_param);
27 27
28void gen_declaration(const char name[], int type, Scope scope); 28void gen_declaration(const char name[], Type type, Scope scope);
29void gen_check(const char name[], Scope scope); 29void gen_check(const char name[], Scope scope);
30 30
31void gen_reade(const char name[], Scope scope); 31void gen_reade(const char name[], Scope scope);
32void gen_readc(const char name[], Scope scope); 32void gen_readc(const char name[], Scope scope);
33 33
34void gen_print(int type); 34void gen_print(Type type);
35 35
36void gen_if_label(int idx); 36void gen_if_label(int idx);
37void gen_if_start(int idx); 37void gen_if_start(int idx);
@@ -39,7 +39,6 @@ void gen_if_end(int idx);
39void gen_ifelse_end(int idx); 39void gen_ifelse_end(int idx);
40 40
41int 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 42
44void gen_or(int left, int right, int idx); 43void gen_or(int left, int right, int idx);
45void gen_and(int left, int right, int idx); 44void gen_and(int left, int right, int idx);
@@ -48,10 +47,9 @@ void gen_order(const char op[], int left, int right, int idx);
48void gen_addsub(char op, int left, int right); 47void gen_addsub(char op, int left, int right);
49void gen_divstar(char op, int left, int right); 48void gen_divstar(char op, int left, int right);
50 49
51int gen_signed_expr(char op, int type); 50int gen_signed_expr(char op, Type type);
52int gen_negate_expr(int type); 51int gen_negate_expr(Type type);
53int gen_value(const char ident[], Scope scope); 52int gen_value(const char ident[], Scope scope);
54int gen_value_tab(const char ident[], Scope scope);
55 53
56int gen_num(int value, Scope scope); 54int gen_num(int value, Scope scope);
57int gen_char(int value, Scope scope); 55int gen_char(int value, Scope scope);