[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) 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 state
- Description
-
Keeps the state, e.g. multiline input in process etc.
- Variable
variables
-
mapping(string:mixed) variables
- Description
-
The locally defined variables (name:value).
- Variable
types
-
mapping(string:string) types
- Description
-
The types of the locally defined variables (name:type).
- Variable
constants
-
mapping(string:mixed) constants
- Description
-
The locally defined constants (name:value).
- Variable
functions
-
mapping(string:function) functions
- Description
-
The locally defined functions (name:value).
- Variable
programs
-
mapping(string:program) programs
- Description
-
The locally defined programs (name:value).
- Variable
imports
-
array(string) imports
- Description
-
The current imports.
- Variable
inherits
-
array(string) inherits
- Description
-
The current inherits.
- Variable
history
-
HilfeHistory history
- Description
-
The current result history.
- Variable
write
-
array|object|function(string:int(0..)) write
- Description
-
The function to use when writing to the user.
- Variable
last_compiled_expr
-
string last_compiled_expr
- Description
-
The last created wrapper in which an expression was evaluated.
- Variable
last_compile_time
-
int(0..) last_compile_time
- Description
-
The last compile time;
- Variable
last_eval_time
-
int(0..) last_eval_time
- Description
-
The last evaluation time;
- Variable
strict_types
-
int(0..1) strict_types
- Description
-
Strict types?
- Variable
warnings
-
int(0..1) warnings
- Description
-
Show warnings?
- Variable
trace_level
-
int trace_level
- Description
-
The current trace level.
- Variable
assembler_debug_level
-
int assembler_debug_level
- Description
-
The current assembler debug level.
Only available if Pike is compiled with RTL debug.
- Variable
compiler_trace_level
-
int compiler_trace_level
- Description
-
The current compiler trace level.
Only available if Pike is compiled with RTL debug.
- Variable
debug_level
-
int debug_level
- Description
-
The current debug level.
Only available if Pike is compiled with RTL debug.
- Variable
reswrite
-
function 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.
|