diff options
author | pacien | 2018-05-07 02:24:04 +0200 |
---|---|---|
committer | pacien | 2018-05-07 02:24:04 +0200 |
commit | 91468b81ccad51eb3f8c0fbc90270a893ff040a9 (patch) | |
tree | 9f2477e5326b7388d0268465952b7525e32861a4 /src/generator.h | |
parent | 15390a3b612562a8f1c995e968cd3b1943375ab9 (diff) | |
download | tpc-compiler-91468b81ccad51eb3f8c0fbc90270a893ff040a9.tar.gz |
Extract generator functions (partial commit)
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ | |||
1 | /** | ||
2 | * UPEM / Compilation / Projet | ||
3 | * Pacien TRAN-GIRARD, Adam NAILI | ||
4 | */ | ||
5 | |||
6 | #ifndef __GENERATOR_H__ | ||
7 | #define __GENERATOR_H__ | ||
8 | |||
9 | typedef enum scope { | ||
10 | GLOBAL, | ||
11 | LOCAL | ||
12 | } Scope; | ||
13 | |||
14 | void prologue(); | ||
15 | void const_declaration(); | ||
16 | void declaration(const char name[], int type, Scope scope); | ||
17 | |||
18 | #endif | ||