Files
scully/inc/AST/VariableDefinition.h

31 lines
582 B
C
Raw Normal View History

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