From cabbac92126f168124372fc502dbc1fa2313eee3 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 5 Jun 2018 22:11:03 +0200 Subject: gen const decl --- src/generator.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/generator.h') diff --git a/src/generator.h b/src/generator.h index 41a769a..6c132fd 100644 --- a/src/generator.h +++ b/src/generator.h @@ -7,6 +7,7 @@ #define __GENERATOR_H__ #include +#include #include "symbol_table.h" typedef enum scope { @@ -21,10 +22,13 @@ FILE *output; void gen_prologue(); void gen_prologue_continue(int *bss_done); void gen_const_declaration(); +void gen_const(const char name[], int value, Scope scope); + Type gen_function_declaration(const char name[], int return_type); void gen_function_end_declaration(const char name[], int return_type, int nb_param); void gen_function_return(Type expect, Type actual); Type gen_function_call(const char name[], int nb_param); + void gen_declaration(const char name[], int type, Scope scope); void gen_check(const char name[], Scope scope); -- cgit v1.2.3