aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
authorpacien2018-05-07 02:24:04 +0200
committerpacien2018-05-07 02:24:04 +0200
commit91468b81ccad51eb3f8c0fbc90270a893ff040a9 (patch)
tree9f2477e5326b7388d0268465952b7525e32861a4 /src/generator.h
parent15390a3b612562a8f1c995e968cd3b1943375ab9 (diff)
downloadtpc-compiler-91468b81ccad51eb3f8c0fbc90270a893ff040a9.tar.gz
Extract generator functions (partial commit)
Diffstat (limited to 'src/generator.h')
-rw-r--r--src/generator.h18
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
9typedef enum scope {
10 GLOBAL,
11 LOCAL
12} Scope;
13
14void prologue();
15void const_declaration();
16void declaration(const char name[], int type, Scope scope);
17
18#endif