32 lines
596 B
C++
32 lines
596 B
C++
#pragma once
|
|
|
|
#include "../Expression.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace AST
|
|
{
|
|
|
|
class Call : public Expression
|
|
{
|
|
|
|
public:
|
|
|
|
explicit Call (const char * pName, const std::vector<const Expression *> & arguments);
|
|
virtual ~Call (void);
|
|
|
|
virtual EExpressionType getExpressionType (void) const { return(CALL); }
|
|
|
|
const std::string & getFunctionName(void) const { return(m_strFunctionName); }
|
|
|
|
const std::vector<const Expression *> & getArguments(void) const { return(m_aArguments); }
|
|
|
|
private:
|
|
|
|
std::string m_strFunctionName;
|
|
std::vector<const Expression *> m_aArguments;
|
|
};
|
|
|
|
}
|