| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
* Allow null values in `setVar` method
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
Additional unit tests
Readme update
|
|
|
|
|
|
|
| |
* String comparison unit tests
* getVars and getFunctions sanity checks
* Add dynamic variable documentation
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
| |
* Reproduce if throws UnknownOperatorException
* Fix variable detection
* Adding IncorrectNumberOfFunctionParametersException
* Removing tabs
* Better exception message text
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Code style fixes
Up phpunit to v8
New CI
* Remove travis
* Fix CI badge
* Added php-cs-fixer action
|
|
|
|
|
| |
* $variables should be private
* Add Packagist tag
|
|\
| |
| | |
Update parameters and add back functions
|
| |\
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Massive refactoring
More clean structure
Parsing without regular expressions
* Cleanup unused imports
* Fix version string for Travis
* 7.1 downgrade
* Fix readme
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
# Conflicts:
# src/NXP/Classes/Calculator.php
# src/NXP/Classes/Lexer.php
# src/NXP/Classes/Token/AbstractOperator.php
# src/NXP/Classes/TokenFactory.php
# src/NXP/MathExecutor.php
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/|
| |
| |
| | |
More clean structure
Parsing without regular expressions
|
| |
| |
| |
| |
| | |
* Update documentation for PHPFUI/InstaDoc
* Removing dead waffle.io links in docs
|
| |
| |
| |
| |
| | |
* Update documentation for PHPFUI/InstaDoc
* Support for negative numbers starting paren enclosed expressions
|
| | |
|
| |
| |
| |
| |
| | |
* Update documentation for PHPFUI/InstaDoc
* Removing dead waffle.io links in docs
|
| |
| |
| |
| |
| | |
* Update documentation for PHPFUI/InstaDoc
* Support for negative numbers starting paren enclosed expressions
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Merge in neonxp master (#9)
* Version 1.1 (#51)
* Update README.md and more function support
* Removing phpunit symbolic link (#53)
* Left bracket and minus fix (#55)
* Left bracket and minus fix (#54)
* Add test for left bracket and minus fix #55
* Fix substraction by zero bug (#56)
Co-authored-by: franksl <info@streamlake.com>
Co-authored-by: Clément Lafont <johnrazeur@gmail.com>
* Docs and test updates
* Update composer
Co-authored-by: franksl <info@streamlake.com>
Co-authored-by: Clément Lafont <johnrazeur@gmail.com>
|
|\ |
|
| | |
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | | |
# Conflicts:
# .gitignore
# tests/MathTest.php
|
| |\ \ |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Updated unit tests
* Fixed docs
* Better unary minus support
|
| |\| | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Updated unit tests
* Fixed docs
* Better unary minus support
|
| |\| |
| | | |
| | | |
| | | |
| | | | |
# Conflicts:
# src/NXP/Classes/Token/TokenFunction.php
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Updated unit tests
Fixed docs
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Left bracket and minus fix (#54)
* Add test for left bracket and minus fix #55
|
| | | | |
|
| |_|/
|/| |
| | |
| | | |
* Update README.md and more function support
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* TokenFactory: allowing multicharacter tokens
* Added logical and compare operators: <, <=, >, >=, ==, !=, ||, &&
* Fixed operator priorities
* Error messages fixes
* Fixed operators priority
The priorities are assigned by following the php language standard
(https://www.php.net/manual/en/language.operators.precedence.php)
I've assigned precedence in steps of 10 units by following the linked page:
230 clone new
220 **
210 ++ -- ~ (int) (float) (string) (array) (object) (bool) @
200 instanceof
190 !
180 * / %
170 + - .
160 << >>
150 < <= > >=
140 == != === !== <> <=>
130 &
120 ^
110 |
100 &&
90 ||
80 ??
70 ? :
60 = += -= *= **= /= .= %= &= |= ^= <<= >>=
50 yield from
40 yield
30 and
20 xor
10 or
* Added if() function
* Cache key fix
There are cases where the cache key creation raised an error, for example
while evaluating the expression "if(cos(2), cos(2), 0)", because the
if() function was passing a float to the MathExecutor:execute() method.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Subtraction fix (#46) (#7)
* Updated unit tests
* Fixed docs
* Better unary minus support
* Subtraction fix (#46) (#8)
* Updated unit tests
* Fixed docs
* Better unary minus support
* Upgrading PHPUnit and dropping support for 5.6 and 7.0
|
| | |
| | |
| | |
| | |
| | | |
* Updated unit tests
* Fixed docs
* Better unary minus support
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Fixed comma operator
Added unit tests for expressions in function arguments.
Changed array_push to $var[] = native code.
* Fixed merge error
* Fixed typo in constant
|