aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/expression.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-02 23:22:51 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-02 23:22:51 +0000
commit446c2394ec8970198d645bbbb462c67b9e3f1b1e (patch)
treefc85d32c2b68efa80910d0a4ce4c1bed78ec4717 /c_compiler/include/expression.hpp
parent34d69709e621b9609833a3d6bae31195b425f2f8 (diff)
downloadCompiler-446c2394ec8970198d645bbbb462c67b9e3f1b1e.tar.gz
Compiler-446c2394ec8970198d645bbbb462c67b9e3f1b1e.zip
Changing ast structure again
Diffstat (limited to 'c_compiler/include/expression.hpp')
-rw-r--r--c_compiler/include/expression.hpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/c_compiler/include/expression.hpp b/c_compiler/include/expression.hpp
index f67d2d7..9eb9efd 100644
--- a/c_compiler/include/expression.hpp
+++ b/c_compiler/include/expression.hpp
@@ -3,22 +3,14 @@
#include "ast.hpp"
-#include <string>
-#include <iostream>
-
-class Expression : public Base {
+class Expression : public BaseNode {
private:
public:
- Expression() {}
-
- virtual void print() const {
-
- }
+ Expression() : BaseNode() {}
- virtual void push(const Base* _base) const {
- std::cerr << "Can't call this function for this type" << std::endl;
- (void)_base;
- }
+ virtual void print() const override {}
+ virtual void printxml() const override {}
+ virtual void printasm() const override {}
};
#endif