[Top]
Tools
Tools.Hilfe
Tools.Hilfe.Evaluator
|
Class Tools.Hilfe.Evaluator
- Description
This class implements the actual Hilfe interpreter. It is accessible
as ___Hilfe from Hilfe expressions.
- Variable
commands
mapping(string:Command) Tools.Hilfe.Evaluator.commands
- Description
This mapping contains the available Hilfe commands, including the
built in ones (dump, exit, help, new, quit), so it is possible to
replace or remove them. The name of a command should be 10
characters or less.
- Variable
state
ParserState Tools.Hilfe.Evaluator.state
- Description
Keeps the state, e.g. multiline input in process etc.
- Variable
variables
mapping(string:mixed) Tools.Hilfe.Evaluator.variables
- Description
The locally defined variables (name:value).
- Variable
types
mapping(string:string) Tools.Hilfe.Evaluator.types
- Description
The types of the locally defined variables (name:type).
- Variable
constants
mapping(string:mixed) Tools.Hilfe.Evaluator.constants
- Description
The locally defined constants (name:value).
- Variable
functions
mapping(string:function) Tools.Hilfe.Evaluator.functions
- Description
The locally defined functions (name:value).
- Variable
programs
mapping(string:program) Tools.Hilfe.Evaluator.programs
- Description
The locally defined programs (name:value).
- Variable
imports
array(string) Tools.Hilfe.Evaluator.imports
- Description
The current imports.
- Variable
inherits
array(string) Tools.Hilfe.Evaluator.inherits
- Description
The current inherits.
- Variable
history
HilfeHistory Tools.Hilfe.Evaluator.history
- Description
The current result history.
- Variable
write
array|object|function(string:int(0..)) Tools.Hilfe.Evaluator.write
- Description
The function to use when writing to the user.
- Variable
last_compiled_expr
string Tools.Hilfe.Evaluator.last_compiled_expr
- Description
The last created wrapper in which an expression was evaluated.
- Variable
last_compile_time
int(0..) Tools.Hilfe.Evaluator.last_compile_time
- Description
The last compile time;
- Variable
last_eval_time
int(0..) Tools.Hilfe.Evaluator.last_eval_time
- Description
The last evaluation time;
- Variable
strict_types
int(0..1) Tools.Hilfe.Evaluator.strict_types
- Description
Strict types?
- Variable
warnings
int(0..1) Tools.Hilfe.Evaluator.warnings
- Description
Show warnings?
- Variable
trace_level
int Tools.Hilfe.Evaluator.trace_level
- Description
The current trace level.
- Variable
assembler_debug_level
int Tools.Hilfe.Evaluator.assembler_debug_level
- Description
The current assembler debug level.
Only available if Pike is compiled with RTL debug.
- Variable
compiler_trace_level
int Tools.Hilfe.Evaluator.compiler_trace_level
- Description
The current compiler trace level.
Only available if Pike is compiled with RTL debug.
- Variable
debug_level
int Tools.Hilfe.Evaluator.debug_level
- Description
The current debug level.
Only available if Pike is compiled with RTL debug.
- Variable
last_else
int(0..1) Tools.Hilfe.Evaluator.last_else
- Description
Should an else expression be carried out?
- Variable
reswrite
function Tools.Hilfe.Evaluator.reswrite
- Description
The function used to write results.
Gets as arguments in order: The safe_write function
(function(string, mixed ...:int), the result as a string (string),
the history entry number (int), the result (mixed), the compilation
time (int) and the evaulation time (int). If the evaluated expression
didn't return anything (e.g. a for loop) then 0 will be given as the
result string.
|