#include <execution.h>
Collaboration diagram for celx::ExecutionContext:

Public Member Functions | |
| ExecutionContext (Environment *) | |
| Environment * | getEnvironment () |
| Value | popReturnValue () |
| void | pushReturnValue (const Value &) |
| void | runtimeError () |
| ~ExecutionContext () | |
Private Attributes | |
| Environment * | globalEnv |
| Stack | returnStack |
|
|
Definition at line 18 of file execution.cpp. 00018 : 00019 globalEnv(env) 00020 { 00021 }
|
|
|
Definition at line 24 of file execution.cpp. 00025 {
00026 }
|
|
|
Definition at line 29 of file execution.cpp. References globalEnv. 00030 {
00031 return globalEnv;
00032 }
|
|
|
Definition at line 41 of file execution.cpp. References returnStack. 00042 {
00043 assert(!returnStack.empty());
00044 Value v = returnStack.back();
00045 returnStack.pop_back();
00046 return v;
00047 }
|
|
|
Definition at line 35 of file execution.cpp. References returnStack. 00036 {
00037 returnStack.push_back(v);
00038 }
|
|
|
Definition at line 30 of file execution.h. 00030 {};
|
|
|
Definition at line 36 of file execution.h. Referenced by getEnvironment(). |
|
|
Definition at line 37 of file execution.h. Referenced by popReturnValue(), and pushReturnValue(). |
1.4.1