aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/declaration.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-07 16:15:51 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-07 16:15:51 +0000
commitfed691abddc2b242a6bcb81d87e18797b95bbe80 (patch)
tree28cb4c0ea9facfa7cc8642c778708f4e038c2aef /c_compiler/include/declaration.hpp
parent15789d04e85806745c4c2e1cb3fdc891c34ab21f (diff)
downloadCompiler-fed691abddc2b242a6bcb81d87e18797b95bbe80.tar.gz
Compiler-fed691abddc2b242a6bcb81d87e18797b95bbe80.zip
Can compile simplest program
Diffstat (limited to 'c_compiler/include/declaration.hpp')
-rw-r--r--c_compiler/include/declaration.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_compiler/include/declaration.hpp b/c_compiler/include/declaration.hpp
index c46aca2..7f862a5 100644
--- a/c_compiler/include/declaration.hpp
+++ b/c_compiler/include/declaration.hpp
@@ -9,7 +9,7 @@ class Declaration : public Node {
protected:
Type* type;
std::string id;
- Initializer* init;
+ Expression* init;
Declaration* next_decl;
Declaration* list_next_decl;