CloneableInstantiable
Properties
public $tokens
Methods
public __construct(string $input, array $operators)
 

Tokenizer constructor.

    public buildReversePolishNotation() : array
     
    • return NXP\Classes\Token[] Array of tokens in revers polish notation
    • throws IncorrectBracketsException
    • throws UnknownOperatorException
    public tokenize() : self
    Properties
    private $allowNegative
     
    • var bool
    private $inDoubleQuotedString
     
    • var bool
    private $input
     
    • var string
    private $inSingleQuotedString
     
    • var bool
    private $numberBuffer
     
    • var string
    private $operators
    private $stringBuffer
     
    • var string
    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
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only