ValueList and some cleanup
This commit is contained in:
21
inc/AST/ValueList.h
Normal file
21
inc/AST/ValueList.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef VALUELIST_H
|
||||
#define VALUELIST_H
|
||||
|
||||
#include "AST/ASTElement.h"
|
||||
#include "AST/Expression.h"
|
||||
#include <vector>
|
||||
|
||||
class ValueList : public ASTElement {
|
||||
public:
|
||||
ValueList();
|
||||
~ValueList();
|
||||
|
||||
virtual void accept(ASTVisitor* visitor);
|
||||
|
||||
void addValue(Expression* expr);
|
||||
std::vector<Expression*> getValues();
|
||||
private:
|
||||
std::vector<Expression*> values_;
|
||||
};
|
||||
|
||||
#endif // VALUELIST_H
|
||||
Reference in New Issue
Block a user