aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/function.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-13 19:31:50 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-13 19:31:50 +0000
commit8d3db310926c414d199fca62f0c349a263543096 (patch)
tree1e46233fe70a0d5ff2b258cfcacd0f502a317741 /c_compiler/include/function.hpp
parentfd25256a37696de23d8f6c99827a97b63733845d (diff)
downloadCompiler-8d3db310926c414d199fca62f0c349a263543096.tar.gz
Compiler-8d3db310926c414d199fca62f0c349a263543096.zip
Reformatting
Diffstat (limited to 'c_compiler/include/function.hpp')
-rw-r--r--c_compiler/include/function.hpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/c_compiler/include/function.hpp b/c_compiler/include/function.hpp
index 57e0ac1..dc8640e 100644
--- a/c_compiler/include/function.hpp
+++ b/c_compiler/include/function.hpp
@@ -1,9 +1,14 @@
#ifndef AST_FUNCTION_HPP
#define AST_FUNCTION_HPP
+#include "bindings.hpp"
+#include "declaration.hpp"
#include "node.hpp"
+#include "statement.hpp"
+#include "type.hpp"
#include <memory>
+#include <string>
class Declaration;
class Statement;
@@ -18,17 +23,17 @@ typedef std::shared_ptr<Function> FunctionPtr;
class Function : public Node {
protected:
- TypePtr type;
- std::string id;
- DeclarationPtr parameter_list;
- StatementPtr statement;
+ TypePtr type_;
+ std::string id_;
+ DeclarationPtr parameter_list_;
+ StatementPtr statement_;
public:
- Function(const std::string& _id, Declaration* _parameter_list, Statement* _statement);
+ Function(const std::string& id, Declaration* parameter_list, Statement* statement);
virtual void print() const;
- virtual void printxml() const;
- virtual VariableStackBindings printasm(VariableStackBindings bindings) const;
+ virtual void printXml() const;
+ virtual VariableStackBindings printAsm(VariableStackBindings bindings) const;
};