aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/MathExecutor.php
Commit message (Collapse)AuthorAgeFilesLines
* Fixed function parameter order (#42)v0.7.1Bruce Wells2019-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed parsing for () * sync (#5) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Added simple coc (#37) * Added simple coc * Fix * Replaceable operators (#38) * Updated from NeonXP/MathExecutor * Fixed function in () block issue * Fixing typos in and clarifying documentation. * Syncing from origin (#3) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Allow for operators to be replaced based on regex expression * Fix md typo (#39) * Updated from NeonXP/MathExecutor * Fixed function in () block issue * Fixing typos in and clarifying documentation. * Syncing from origin (#3) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Syncing to origin (#4) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Added simple coc (#37) * Added simple coc * Fix * Replaceable operators (#38) * Updated from NeonXP/MathExecutor * Fixed function in () block issue * Fixing typos in and clarifying documentation. * Syncing from origin (#3) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Allow for operators to be replaced based on regex expression * \\ instead of \ * Update README.md Some small fixes * Fix single quotes parsing (#41) * Fix single quotes parsing Fix e-mails Some small fixes * Mistake in test * More PHP versions * Update README.md Deleted `dev` branch * Fixed function parameter order Corrected $places default value for addFunction to match TokenFactory Added function order test and put expected order first in assertEquals If else blocks in calculator Updated docs
* Merge branch 'master' into masterBruce Wells2019-01-111-1/+1
|\
| * Syncing from origin (#3)Bruce Wells2019-01-101-29/+70
| | | | | | | | | | | | | | | | * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36)
* | Fix single quotes parsing (#41)Alexander Kiryukhin2019-01-111-12/+15
| | | | | | | | | | | | | | | | | | | | * Fix single quotes parsing Fix e-mails Some small fixes * Mistake in test * More PHP versions
* | MathExecutor allow override default operators, functions and vars (#36)Timur2019-01-101-29/+70
|/
* Division By Zero Exception supportBruce Wells2018-10-311-0/+23
| | | | | | Updated the documentation. Unit tests for strings. DivisionByZeroException support.
* Merge branch 'master' into support_for_double_quoted_stringsBruce Wells2018-09-121-1/+5
|\
| * Merge branch 'master' into devAlexander Kiryukhin2018-09-061-0/+21
| |\
| | * Merge branch 'master' into getters_for_function_and_operatorsAlexander Kiryukhin2018-09-061-4/+0
| | |\
| | * | Add ability to get functions and operators that have been registeredBruce Wells2018-08-311-0/+21
| | | |
| * | | Added variable type to diagnostic messageBruce Wells2018-09-061-1/+1
| | | |
| * | | Exception MessagesBruce Wells2018-08-281-1/+1
| |/ / | | | | | | | | | Basically the token that is causing the exception for better diagnostics.
| * | ~ remove callable for PHP 5.3NeonXP2013-09-181-1/+1
| | |
* | | Support for double quoted stringsBruce Wells2018-09-121-6/+53
| |/ |/| | | | | | | | | | | | | Changed array() to [] syntax. Added variable in question to unknown variable exception. Added getVar and getVars accessor functions. Added getOperators and getFunctions accessor functions for completeness. Extended all Exceptions off MathExecutorException.
* | Removing the numeric test on setVar.charles VILLETTE2016-07-071-4/+0
|/
* + Added cache, which speeds up the repetitive calculationsNeonXP2013-09-061-5/+88
| | | | + Returned variables, because they need for cached expressions
* ~ PHP CS fixerNeonXP2013-09-061-3/+3
|
* Mass refactoringNeonXP2013-09-061-316/+35
| | | | | | | | | | | Some changes: + Added support of functions with multiple arguments + Added some default function (min, max, avg). just example of multiple arguments :) - Removed variables support (I think they pointless) ~ All tokens now in individual classes ~ Parsing based on regular expressions ~ Fix negative numbers ~ Fix grouping with brackets
* Fix to PSR standart, fix tokenizer, fix function executor.zhukv2013-08-031-0/+393