diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-16 21:24:02 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-16 21:24:02 +0000 |
commit | 4858aa179ddc6044c55c8ae8708a76af3e287b05 (patch) | |
tree | f9bcc54ed13720c8a74a5dd726ecfdea083a7e28 /c_compiler/src/declaration.cpp | |
parent | f7b531ebaaa784a0dcebb877ec7b831b324f3510 (diff) | |
download | Compiler-4858aa179ddc6044c55c8ae8708a76af3e287b05.tar.gz Compiler-4858aa179ddc6044c55c8ae8708a76af3e287b05.zip |
function calls now work completely
Diffstat (limited to 'c_compiler/src/declaration.cpp')
-rw-r--r-- | c_compiler/src/declaration.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/c_compiler/src/declaration.cpp b/c_compiler/src/declaration.cpp index d1a0f69..353b470 100644 --- a/c_compiler/src/declaration.cpp +++ b/c_compiler/src/declaration.cpp @@ -87,6 +87,12 @@ void Declaration::setType(Type* type) type_ = type_ptr; } +void Declaration::setInitializer(Expression* initializer) +{ + ExpressionPtr expression_ptr(initializer); + initializer_ = expression_ptr; +} + DeclarationPtr Declaration::getNext() const { return next_declaration_; |