The PhpMyCellScript interpreter.
Call run() to start the interpreter.
Located in /PhpMyCellScript.php (line 30)
The addons, which may support new instructions.
If multiple addons support an instruction, the instruction will be processed by the last addon.
May be used by the addons to return values.
The code to evaluate before interpreting an instruction. For program trace/debug purpose.
The current Excel document.
The IF-like instructions which support the ELSE instruction.
To be read by the PhpMyCellScript interpreter.
The WHILE-like instructions.
To be read by the PhpMyCellScript interpreter.
The INCLUDE instruction will add a working sheet after switched to a new sheet.
The INCLUDE instruction will save the state of the current sheet before processing a new sheet.
Utility: Form a string from strings in a cell array.
Trailing empty cells in each row will be ignored.
Utility: Used by instruction methods to process a variable argument list of string arguments:
argument1 argument2 ... argumentn output_variable
Utility: Used by instruction methods to process a variable argument list of value arguments:
argument1 argument2 ... argumentn output_variable
Constructor
This instruction assigns argument values in $argv to the given variables.
This instruction makes it more convenient to obtain arguments passed by the CALL instruction.
Syntax: ARGV [argument_variable1] [argument_variable2] ... [argument_variablen]
This instruction breaks a WHILE-like loop.
Syntax: BREAK [num_of_loops_to_break]
This instruction marks a comment.
It should be clearer and more convenient to use a short instruction name to mark a comment.
Syntax: C [comment]
This instruction runs the instructions in a sheet in another variable scope.
Syntax: CALL sheet_name [argument1 argument2 ... argumentn output_variable]
This instruction tries to handle an exception.
Syntax: CATCH exception_type inner_exception sheet_name instruction_name row_number
If the exception can be handled, then the instructions in the next column will be processed.
This instruction marks a comment.
Syntax: COMMENT [comment]
This instruction continues a WHILE-like loop.
Syntax: CONTINUE [loop_index]
This instruction supports an alternative branch for the IF and some other instructions.
Syntax: ELSE
If no previous branch is executed, then the instructions in the next column will be processed.
This instruction supports alternative branches for the IF and some other instructions.
Syntax: ELSEIF condition
This instruction evaluates some PHP code, which makes it easier to run PHP code in the spreadsheet.
Syntax: EVAL php_code
This instruction provides the PHP foreach construct to the spreadsheet.
Syntax: FOREACH array/iterator [value_variable] [key_variable]
This instruction provides the IF construct to the spreadsheet.
Syntax: IF condition
This instruction enables the instructions in another sheet to be processed, which makes it possible to share instructions in the spreadsheet.
Syntax: INCLUDE sheet_name
This instruction ends the process of the current sheet.
Syntax: RETURN [return_value]
This instruction throws an exception.
Syntax: THROW exception
This instruction injects some PHP code to the interpreter to evaluate, before each instruction is interpreted.
This instruction may be used for program trace/debug purpose.
Syntax: TRACE_START [code_to_eval_on_start] [code_to_eval_per_instruction]
This instruction removes the code injected by TRACE_START.
Syntax: TRACE_STOP [code_to_eval_on_stop]
This instruction indicates that the following code in the next column may throw exceptions.
Syntax: TRY
This instruction provides WHILE loop support to the spreadsheet.
Syntax: WHILE condition
Collect the cell values after the current row and the current column.
The current row will be updated after a row is processed.
Used by the CATCH instruction to enter the exception handling code.
Used by the interpreter to indicate whether the IF branch has been entered, used by the ELSE-like instructions.
Used by an addon instruction method for an ELSE-like instruction to enter the ELSE branch conditionally.
Used by an addon instruction method for an IF-like instruction to enter the IF branch.
Used by the TRY instruction to enter the code which may throw exceptions.
Used by an addon instruction method for a WHILE-like instruction to enter the while loop.
Find the last instruction data of an instruction before the current column.
Get the reference to the instruction data of the instruction in the current column.
Get the interpreter states for the current working sheet.
Register a PhpMyCellScript addon.
Register a PhpMyCellScript addon, by its name.
Assume that the addon is put in the directory and namespace PhpMyCellScript\Addons.
Start the PhpMyCellScript interpreter.
Documentation generated on Sun, 01 Mar 2015 08:43:49 +0000 by phpDocumentor 1.4.3