Repository navigation
RC1:
- LazyCalculator: allows lazy operators and lazy functions
- Lazy binary and unary operators
- Lazy functions
ANDandORoperators are now lazyif()is now lazy
addFunctions()no longer accepts callables, useaddFunctionsFromCallables()- Default config additions:
NOToperator- Functions returning special constants:
true(),false(),nan(),inf()
- Binary operator priorities moved to a separate class,
Arokettu\ArithmeticParser\Config\BinaryPriorityBinaryOperator::PRIORITY_*constants are deprecated
Release:
defined()lazy function to check if a variable is definedsetFunctions()no longer accepts callables too- More granular exceptions for Calculator classes:
- CalcCallException now has 2 subclasses: UndefinedVariableException and UndefinedFunctionException
- CalcConfigException is thrown if calculator is misconfigured or duplicate variables are passed
- CalculatorException interface to catch both CalcCallException and CalcConfigException