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
|
||||
20
inc/Token.h
Normal file
20
inc/Token.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/* The scully programming language.
|
||||
*
|
||||
* Copyright (c) Peter Dahlberg, Markus Hauschild and Florian Sattler, 2013.
|
||||
* Licensed under the GNU GPL v2.
|
||||
*/
|
||||
|
||||
#ifndef TOKEN_H
|
||||
#define TOKEN_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class Token {
|
||||
public:
|
||||
Token(std::string text);
|
||||
std::string getText();
|
||||
private:
|
||||
std::string text_;
|
||||
};
|
||||
|
||||
#endif // TOKEN_H
|
||||
Reference in New Issue
Block a user