aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
authorAdam NAILI2018-06-03 15:30:53 +0200
committerAdam NAILI2018-06-03 15:30:53 +0200
commitb8f7e7b6843c2bff778ce3c74e355a03e7565499 (patch)
tree9a99518d868af17e5c82ee892f0fde65cf361da5 /src/generator.h
parent628b18fb15ee3d6633c73d404f109d01f0a7ece2 (diff)
downloadtpc-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.h3
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;
19void gen_prologue(); 19void gen_prologue();
20void gen_prologue_continue(int *bss_done); 20void gen_prologue_continue(int *bss_done);
21void gen_const_declaration(); 21void gen_const_declaration();
22void gen_function_declaration(const char name[], int return_type, int nb_param);
23void gen_function_end_declaration();
24int gen_function_call(const char name[], int nb_param);
22void gen_declaration(const char name[], int type, Scope scope); 25void gen_declaration(const char name[], int type, Scope scope);
23 26
24void gen_read(const char name[], Scope scope); 27void gen_read(const char name[], Scope scope);