diff options
author | Adam NAILI | 2018-06-03 15:30:53 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-03 15:30:53 +0200 |
commit | b8f7e7b6843c2bff778ce3c74e355a03e7565499 (patch) | |
tree | 9a99518d868af17e5c82ee892f0fde65cf361da5 /src/generator.h | |
parent | 628b18fb15ee3d6633c73d404f109d01f0a7ece2 (diff) | |
download | tpc-compiler-b8f7e7b6843c2bff778ce3c74e355a03e7565499.tar.gz |
Functions tables + void functions working (need to work on returns and parameters cause all functions are void here)
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/generator.h b/src/generator.h index 1a4c96a..b486172 100644 --- a/src/generator.h +++ b/src/generator.h | |||
@@ -19,6 +19,9 @@ FILE *output; | |||
19 | void gen_prologue(); | 19 | void gen_prologue(); |
20 | void gen_prologue_continue(int *bss_done); | 20 | void gen_prologue_continue(int *bss_done); |
21 | void gen_const_declaration(); | 21 | void gen_const_declaration(); |
22 | void gen_function_declaration(const char name[], int return_type, int nb_param); | ||
23 | void gen_function_end_declaration(); | ||
24 | int gen_function_call(const char name[], int nb_param); | ||
22 | void gen_declaration(const char name[], int type, Scope scope); | 25 | void gen_declaration(const char name[], int type, Scope scope); |
23 | 26 | ||
24 | void gen_read(const char name[], Scope scope); | 27 | void gen_read(const char name[], Scope scope); |