blob: 98fe25522d331bbbcb5d41639e211f22c6b032e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef AST_DECLARATION_HPP
#define AST_DECLARATION_HPP
#include "ast.hpp"
class ast_Declaration : public ast_Base {
private:
public:
virtual void print() const override = 0;
};
class ast_VariableDeclaration : public ast_Declartaion {
private:
const std::string id;
const std::string type;
public:
ast_VariableDeclaration(const std::string& _id, const std::string& _type) :
id(_id), type(_type) {}
virtual void print() const override {}
};
#endif
|