- author Alexander Kiryukhin
Cloneable
Instantiable
Properties |
public
$tokens
|
Methods |
public
__construct
(
string
$input
,
array
$operators
) Tokenizer constructor. |
public
buildReversePolishNotation
() :
array
|
public tokenize () : self |
Properties |
private
$allowNegative
|
private
$inDoubleQuotedString
|
private
$input
|
private
$inSingleQuotedString
|
private
$numberBuffer
|
private
$operators
|
private
$stringBuffer
|
Methods |
private emptyNumberBufferAsLiteral () : void |
private emptyStrBufferAsVariable () : void |
private isAlpha ( string $ch ) : bool |
private isComma ( string $ch ) : bool |
private isDot ( string $ch ) : bool |
private isLP ( string $ch ) : bool |
private isNumber ( string $ch ) : bool |
private isRP ( string $ch ) : bool |