Files
scully/inc/AST/ParameterList.h

30 lines
624 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:38:20 +02:00
#ifndef PARAMETERLIST_H
#define PARAMETERLIST_H
#include "AST/ASTElement.h"
#include "AST/Type.h"
#include <vector>
2013-06-01 16:22:01 +02:00
typedef std::pair<Type, std::string> Parameter;
2013-06-01 00:38:20 +02:00
class ParameterList : public ASTElement {
public:
ParameterList();
virtual ~ParameterList();
virtual void accept(ASTVisitor* visitor);
2013-06-01 16:22:01 +02:00
void addParameter(Type type, std::string name);
2013-06-01 00:38:20 +02:00
std::vector<Parameter> getParameters();
private:
std::vector<Parameter> params_;
};
#endif // PARAMETERLIST_H