Progress!

This commit is contained in:
Markus Hauschild
2013-05-31 23:51:44 +02:00
parent 713b5078cd
commit 28ca85b94e
9 changed files with 129 additions and 17 deletions

14
inc/AST/ASTElement.h Normal file
View 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
View 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
View 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