Add sources
This commit is contained in:
31
src/AST/Expressions/Call.h
Normal file
31
src/AST/Expressions/Call.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user