Progress!
This commit is contained in:
14
inc/AST/ASTElement.h
Normal file
14
inc/AST/ASTElement.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef ASTELEMENT_H
|
||||
#define ASTELEMENT_H
|
||||
|
||||
#include "AST/ASTVisitor.h"
|
||||
|
||||
class ASTElement {
|
||||
public:
|
||||
ASTElement();
|
||||
virtual ~ASTElement();
|
||||
|
||||
virtual void accept(ASTVisitor* visitor) = 0;
|
||||
};
|
||||
|
||||
#endif // ASTELEMENT_H
|
||||
10
inc/AST/ASTVisitor.h
Normal file
10
inc/AST/ASTVisitor.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef ASTVISITOR_H
|
||||
#define ASTVISITOR_H
|
||||
|
||||
class ASTVisitor {
|
||||
public:
|
||||
ASTVisitor();
|
||||
virtual ~ASTVisitor();
|
||||
};
|
||||
|
||||
#endif // ASTVISITOR_H
|
||||
Reference in New Issue
Block a user