#include <Interpreter.h>
List of all members.
Public Member Functions |
| | Interpreter (void) |
| | ~Interpreter (void) |
| bool | run (const Script *script, RuntimeEnvironment *env) |
| bool | _execute () |
| bool | _validate_value (const Value *value, unsigned long code_ref) |
| bool | _validate_function (const BaseFunction *function, unsigned long code_ref) |
| bool | _check_accessibility (const Value *value, Value::Type type, ValueHandler *value_handler, unsigned long code_ref) |
| void | _set_typed_access (Value *value, bool all, ValueHandler *value_handler, unsigned long code_ref) |
| void | _set_const_access (Value *value, bool all, ValueHandler *value_handler, unsigned long code_ref) |
Static Public Member Functions |
| static void | _set_typed_access_callback (const Symbol symbol, Value *value, ValueHandler *value_handler) |
| static void | _set_const_access_callback (const Symbol symbol, Value *value, ValueHandler *value_handler) |
| static void | _value_info (const Symbol symbol, Value *value, ValueHandler *value_handler) |
Detailed Description
The interpreter that processes the bytecode instructions.
Constructor & Destructor Documentation
| el7::scripting::running::Interpreter::Interpreter |
( |
void |
|
) |
|
| el7::scripting::running::Interpreter::~Interpreter |
( |
void |
|
) |
|
Member Function Documentation
| bool el7::scripting::running::Interpreter::_check_accessibility |
( |
const Value * |
value, |
|
|
Value::Type |
type, |
|
|
ValueHandler * |
value_handler, |
|
|
unsigned long |
code_ref | |
|
) |
| | |
Checks the accessibility for the given value with regard to the given type to be written. Returns true, if the given value can be overwritten with a new value of the given type. Fires an error message and returns false, if not.
| bool el7::scripting::running::Interpreter::_execute |
( |
|
) |
|
Executes the current instruction.
| void el7::scripting::running::Interpreter::_set_const_access |
( |
Value * |
value, |
|
|
bool |
all, |
|
|
ValueHandler * |
value_handler, |
|
|
unsigned long |
code_ref | |
|
) |
| | |
| void el7::scripting::running::Interpreter::_set_const_access_callback |
( |
const Symbol |
symbol, |
|
|
Value * |
value, |
|
|
ValueHandler * |
value_handler | |
|
) |
| | [static] |
| void el7::scripting::running::Interpreter::_set_typed_access |
( |
Value * |
value, |
|
|
bool |
all, |
|
|
ValueHandler * |
value_handler, |
|
|
unsigned long |
code_ref | |
|
) |
| | |
| void el7::scripting::running::Interpreter::_set_typed_access_callback |
( |
const Symbol |
symbol, |
|
|
Value * |
value, |
|
|
ValueHandler * |
value_handler | |
|
) |
| | [static] |
| bool el7::scripting::running::Interpreter::_validate_function |
( |
const BaseFunction * |
function, |
|
|
unsigned long |
code_ref | |
|
) |
| | |
Validates the given function. Returns true, if the given function is ok. Fires an error message and returns false, if not.
| bool el7::scripting::running::Interpreter::_validate_value |
( |
const Value * |
value, |
|
|
unsigned long |
code_ref | |
|
) |
| | |
Validates the given value. Returns true, if the given value is ok. Fires an error message and returns false, if not.
| void el7::scripting::running::Interpreter::_value_info |
( |
const Symbol |
symbol, |
|
|
Value * |
value, |
|
|
ValueHandler * |
value_handler | |
|
) |
| | [static] |
Completely executes the given script within the given runtime environment.
The documentation for this class was generated from the following files: