#include <function.h>
Collaboration diagram for celx::Function:

Public Member Functions | |
| Value | call (ExecutionContext &) |
| Function (const Function &) | |
| Function (std::vector< std::string > *, Statement *) | |
| ~Function () | |
Private Attributes | |
| std::vector< std::string > * | arguments |
| Statement * | body |
|
||||||||||||
|
Definition at line 18 of file function.cpp.
|
|
|
Definition at line 23 of file function.cpp.
|
|
|
Definition at line 28 of file function.cpp. 00029 {
00030 // delete arguments;
00031 // delete body;
00032 }
|
|
|
Definition at line 35 of file function.cpp. References body, and celx::Statement::execute(). Referenced by celx::FunctionCallExpression::eval(). 00036 {
00037 Statement::Control control = body->execute(context);
00038 if (control == Statement::ControlReturn)
00039 {
00040 return context.popReturnValue();
00041 }
00042 else
00043 {
00044 return Value();
00045 }
00046 }
|
|
|
Definition at line 34 of file function.h. |
|
|
Definition at line 35 of file function.h. Referenced by call(). |
1.4.1