2012-12-30 13:59:30 +00:00
|
|
|
/*
|
|
|
|
* SenchaFunction.h
|
|
|
|
*
|
|
|
|
* Created on: Dec 30, 2012
|
|
|
|
* Author: att
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SENCHAFUNCTION_H_
|
|
|
|
#define SENCHAFUNCTION_H_
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
2012-12-30 15:38:18 +00:00
|
|
|
#include "SenchaObject.h"
|
2012-12-30 13:59:30 +00:00
|
|
|
#include "Element.h"
|
|
|
|
#include "../Utils/to_string.h"
|
|
|
|
#include "../AST/ASTNode.h"
|
|
|
|
|
|
|
|
|
|
|
|
class SenchaFunction : public Element
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string name;
|
|
|
|
std::vector<std::string> names_of_arguments;
|
2012-12-31 16:10:37 +00:00
|
|
|
|
2012-12-30 13:59:30 +00:00
|
|
|
ASTNode * body;
|
|
|
|
|
2012-12-31 16:10:37 +00:00
|
|
|
SenchaFunction(std::string name, std::vector<std::string> names_of_arguments, ASTNode * body);
|
|
|
|
SenchaObject operator()();
|
|
|
|
|
2012-12-30 13:59:30 +00:00
|
|
|
virtual ~SenchaFunction();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* SENCHAFUNCTION_H_ */
|