From 91468b81ccad51eb3f8c0fbc90270a893ff040a9 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 7 May 2018 02:24:04 +0200 Subject: Extract generator functions (partial commit) --- src/generator.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/generator.h (limited to 'src/generator.h') diff --git a/src/generator.h b/src/generator.h new file mode 100644 index 0000000..53acdef --- /dev/null +++ b/src/generator.h @@ -0,0 +1,18 @@ +/** + * UPEM / Compilation / Projet + * Pacien TRAN-GIRARD, Adam NAILI + */ + +#ifndef __GENERATOR_H__ +#define __GENERATOR_H__ + +typedef enum scope { + GLOBAL, + LOCAL +} Scope; + +void prologue(); +void const_declaration(); +void declaration(const char name[], int type, Scope scope); + +#endif -- cgit v1.2.3