aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fixed function argument ordering and default parameter type for addFunctionBruce Wells2019-01-112-2/+2
| | | | | Updated unit tests Fixed docs
* sync (#5)Bruce Wells2019-01-1124-175/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Syncing to origin (#4)Bruce Wells2019-01-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Syncing from origin (#3)Bruce Wells2019-01-102-32/+78
| | | | | | | | * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36)
* Fixed function in () block issueBruce Wells2018-11-261-130/+133
|
* Division By Zero Exception supportBruce Wells2018-10-314-1/+89
| | | | | | Updated the documentation. Unit tests for strings. DivisionByZeroException support.
* Removing DivisionByZeroException testing for nowBruce Wells2018-10-251-4/+0
| | | | Added more unit tests.
* Additional validation for bad expressions (*+ for example)Bruce Wells2018-10-247-1/+76
|
* Fixed merge errorBruce Wells2018-09-121-13/+0
|
* Merge branch 'master' into support_for_double_quoted_stringsBruce Wells2018-09-122-1/+17
|\
| * Merge branch 'master' into devAlexander Kiryukhin2018-09-065-5/+48
| |\
| | * Merge branch 'master' into getters_for_function_and_operatorsAlexander Kiryukhin2018-09-064-9/+5
| | |\
| | * | Add ability to get functions and operators that have been registeredBruce Wells2018-08-312-0/+43
| | | |
| * | | Added variable type to diagnostic messageBruce Wells2018-09-061-1/+1
| | | |
| * | | Exception MessagesBruce Wells2018-08-283-5/+5
| |/ / | | | | | | | | | 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-1212-34/+132
| |/ |/| | | | | | | | | | | | | 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.
* | Merge pull request #16 from Deisss/masterAlexander Kiryukhin2017-09-121-4/+0
|\ \ | | | | | | Removing the numeric test on setVar.
| * | Removing the numeric test on setVar.charles VILLETTE2016-07-071-4/+0
| | |
* | | Fixes exponentiation operatorochi512017-09-121-2/+2
| | |
* | | Bug fixes about "Undefined offset -1" if stack is empty array and token ↵ochi512017-09-121-2/+2
|/ / | | | | | | association is RIGHT_ASSOC
* | Specifically check for 0 in division to allow for negative operationsbajb2016-04-011-1/+1
| |
* | Avoid division by zerobajb2016-04-011-1/+1
|/
* Make TokenNumber aware of scientific notationAnton Stöckl2013-09-061-1/+1
| | | | | Update the regex so scientific notation numbers work, e.g.: '1 + 3.5E-8' '1 + 3.5E8'
* ~ Fix PHP 5.3 compatibilityNeonXP2013-09-061-2/+3
|
* ~ Fix PHP 5.3 compatibilityNeonXP2013-09-061-1/+1
|
* + Added cache, which speeds up the repetitive calculationsNeonXP2013-09-067-10/+178
| | | | + Returned variables, because they need for cached expressions
* ~ PHP CS fixerNeonXP2013-09-061-3/+3
|
* Mass refactoringNeonXP2013-09-0624-671/+901
| | | | | | | | | | | 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-0310-0/+843