Files
scully/inc/AST/VariableDefinition.h
2013-06-02 09:47:27 +02:00

31 lines
582 B
C++

/* The scully programming language.
*
* Copyright (c) Peter Dahlberg, Markus Hauschild and Florian Sattler, 2013.
* Licensed under the GNU GPL v2.
*/
#ifndef VARIABLEDEFINITION_H
#define VARIABLEDEFINITION_H
#include <string>
#include "AST/Statement.h"
#include "AST/Type.h"
class VariableDefinition : public Statement
{
public:
VariableDefinition(Type type, std::string name);
virtual ~VariableDefinition();
virtual void accept(ASTVisitor* visitor);
Type getType();
std::string getName();
private:
Type type_;
std::string name_;
};
#endif // VARIABLEDEFINITION_H