summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Elements/SenchaFunction.h
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-13 17:36:38 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-13 17:36:38 +0100
commit058a18c612c6d4f33779058b07ba80b3854f2275 (patch)
tree6fcb75fb0ba30fc6104e83863aa93f3e15375c1e /Sencha-lang/Elements/SenchaFunction.h
parent837d4c4bce813919f6713f76c7c24404951751f6 (diff)
downloadsencha-lang-058a18c612c6d4f33779058b07ba80b3854f2275.tar.gz
sencha-lang-058a18c612c6d4f33779058b07ba80b3854f2275.tar.bz2
sencha-lang-058a18c612c6d4f33779058b07ba80b3854f2275.tar.xz
sencha-lang-058a18c612c6d4f33779058b07ba80b3854f2275.zip
More documentaaaaation.HEADmaster
Diffstat (limited to 'Sencha-lang/Elements/SenchaFunction.h')
-rw-r--r--Sencha-lang/Elements/SenchaFunction.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/Sencha-lang/Elements/SenchaFunction.h b/Sencha-lang/Elements/SenchaFunction.h
index 184f84c..e009df2 100644
--- a/Sencha-lang/Elements/SenchaFunction.h
+++ b/Sencha-lang/Elements/SenchaFunction.h
@@ -15,19 +15,23 @@
#include "../Utils/to_string.h"
#include "../AST/ASTNode.h"
-
+/**
+ * SenchaFunction is a class which is an abstraction of function written in SenchaLang.
+ * It stores name of the function, its body, and provides () call operator.
+ */
class SenchaFunction : public Element
{
public:
+ SenchaFunction(std::string name, std::vector<std::string> names_of_arguments, ASTNode * body);
+ SenchaObject operator()();
std::string name;
std::vector<std::string> names_of_arguments;
+ virtual ~SenchaFunction();
+private:
- ASTNode * body;
- SenchaFunction(std::string name, std::vector<std::string> names_of_arguments, ASTNode * body);
- SenchaObject operator()();
- virtual ~SenchaFunction();
+ ASTNode * body;
};
#endif /* SENCHAFUNCTION_H_ */