Skip to content

Releases: neonxp/MathExecutor

Improved Support for NULL variables

15 Sep 00:49
f8faf3f
Compare
Choose a tag to compare
Improved support for null variables (#72)

* Added handler to define not found variables
Added support for string variables
Fixed strings and ints comparison error

* Check if variables have scalar types (int, float, string and bool)
Better $onVarNotFound logic

* Better support for null variables

* Better support for null variables

* Better support for null variables

Better error message for setVar

27 Jul 16:27
44d72cc
Compare
Choose a tag to compare
Better setVar error message (#70)

Additional unit tests
Readme update

Dynamic Variables

27 Jul 02:19
b38893d
Compare
Choose a tag to compare

Undefined variable handler allows for delayed computation of variables. Perfect for seldom used variables that may be expensive to compute on initialization of MathExecutor.

Variables working

04 Jun 15:44
aa8ffe1
Compare
Choose a tag to compare

Fixed variables and added better exception messages

Code style and MathExecutorException namespace fix

01 Jun 00:53
ea898d7
Compare
Choose a tag to compare

MathExecutorException had incorrect namespace on setVar not being passed a numeric value.

Packagist Badge

21 May 18:51
7852fc7
Compare
Choose a tag to compare
  • Added Packagist badge to README.md
  • $variables is now private, as it was in V1

New tokenizer and executor

20 May 19:29
913cf0a
Compare
Choose a tag to compare
  • New tokenizer without regular expressions
  • Simpler code structure
  • Better performance
  • ~20% less memory usage
  • PHP >=7.1 support
  • Division by zero default is now to throw DivisionByZeroException. Call setDivisionByZeroIsZero to default to V1 behavior.

Support for negative numbers starting bracketed expressions

21 Apr 15:15
4d50343
Compare
Choose a tag to compare
Negative expression start (#60)

* Update documentation for PHPFUI/InstaDoc

* Support for negative numbers starting paren enclosed expressions

PHP 7.4 support

07 Feb 22:48
4955c63
Compare
Choose a tag to compare
  • Unary -0 support
  • PHP 7.4 support for TravisCI
  • Unit Test Cleanup
  • Documentation tweaks

Paren uniary minus fix

13 Jan 17:11
Compare
Choose a tag to compare

Better support for (- construct