ILIAS
eassessment Revision 61809
|
Public Member Functions | |
__construct ($pFormula= '') | |
Create a new PHPExcel_Calculation_FormulaParser. | |
getFormula () | |
Get Formula. | |
getToken ($pId=0) | |
Get Token. | |
getTokenCount () | |
Get Token count. | |
getTokens () | |
Get Tokens. |
Data Fields | |
const | QUOTE_DOUBLE = '"' |
const | QUOTE_SINGLE = '\'' |
const | BRACKET_CLOSE = ']' |
const | BRACKET_OPEN = '[' |
const | BRACE_OPEN = '{' |
const | BRACE_CLOSE = '}' |
const | PAREN_OPEN = '(' |
const | PAREN_CLOSE = ')' |
const | SEMICOLON = ';' |
const | WHITESPACE = ' ' |
const | COMMA = ',' |
const | ERROR_START = '#' |
const | OPERATORS_SN = "+-" |
const | OPERATORS_INFIX = "+-*/^&=><" |
const | OPERATORS_POSTFIX = "%" |
Private Member Functions | |
_parseToTokens () | |
Parse to tokens. |
Private Attributes | |
$_formula | |
$_tokens = array() |
Definition at line 59 of file FormulaParser.php.
PHPExcel_Calculation_FormulaParser::__construct | ( | $pFormula = '' | ) |
Create a new PHPExcel_Calculation_FormulaParser.
string | $pFormula | Formula to parse |
Exception |
Definition at line 98 of file FormulaParser.php.
References _parseToTokens().
|
private |
Parse to tokens.
Definition at line 156 of file FormulaParser.php.
References BRACE_CLOSE, BRACE_OPEN, BRACKET_CLOSE, BRACKET_OPEN, COMMA, ERROR_START, OPERATORS_INFIX, OPERATORS_POSTFIX, OPERATORS_SN, PAREN_CLOSE, PAREN_OPEN, QUOTE_DOUBLE, QUOTE_SINGLE, SEMICOLON, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_CONCATENATION, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_ERROR, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_INTERSECTION, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_LOGICAL, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_MATH, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_NOTHING, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_NUMBER, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_RANGE, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_START, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_STOP, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_TEXT, PHPExcel_Calculation_FormulaToken\TOKEN_SUBTYPE_UNION, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_ARGUMENT, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_OPERATORPOSTFIX, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_OPERATORPREFIX, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_SUBEXPRESSION, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_UNKNOWN, PHPExcel_Calculation_FormulaToken\TOKEN_TYPE_WHITESPACE, and WHITESPACE.
Referenced by __construct().
PHPExcel_Calculation_FormulaParser::getFormula | ( | ) |
PHPExcel_Calculation_FormulaParser::getToken | ( | $pId = 0 | ) |
Get Token.
int | $pId | Token id |
Exception |
Definition at line 127 of file FormulaParser.php.
PHPExcel_Calculation_FormulaParser::getTokenCount | ( | ) |
Get Token count.
Definition at line 140 of file FormulaParser.php.
PHPExcel_Calculation_FormulaParser::getTokens | ( | ) |
Get Tokens.
Definition at line 149 of file FormulaParser.php.
References $_tokens.
|
private |
Definition at line 83 of file FormulaParser.php.
Referenced by getFormula().
|
private |
Definition at line 90 of file FormulaParser.php.
Referenced by getTokens().
const PHPExcel_Calculation_FormulaParser::BRACE_CLOSE = '}' |
Definition at line 66 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::BRACE_OPEN = '{' |
Definition at line 65 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::BRACKET_CLOSE = ']' |
Definition at line 63 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::BRACKET_OPEN = '[' |
Definition at line 64 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::COMMA = ',' |
Definition at line 71 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::ERROR_START = '#' |
Definition at line 72 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::OPERATORS_INFIX = "+-*/^&=><" |
Definition at line 75 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX = "%" |
Definition at line 76 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::OPERATORS_SN = "+-" |
Definition at line 74 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::PAREN_CLOSE = ')' |
Definition at line 68 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::PAREN_OPEN = '(' |
Definition at line 67 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE = '"' |
Definition at line 61 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE = '\'' |
Definition at line 62 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::SEMICOLON = ';' |
Definition at line 69 of file FormulaParser.php.
Referenced by _parseToTokens().
const PHPExcel_Calculation_FormulaParser::WHITESPACE = ' ' |
Definition at line 70 of file FormulaParser.php.
Referenced by _parseToTokens().