aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes
Commit message (Collapse)AuthorAgeFilesLines
* Fix single quotes parsing (#41)Alexander Kiryukhin2019-01-1121-162/+196
| | | | | | | | | | * Fix single quotes parsing Fix e-mails Some small fixes * Mistake in test * More PHP versions
* Replaceable operators (#38)v0.7Bruce Wells2019-01-101-2/+1
| | | | | | | | | | | | | | | | | | * 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
* MathExecutor allow override default operators, functions and vars (#36)Timur2019-01-101-3/+8
|
* Fixed Lexor to correctly generate reverse polish notation (#33)v0.6Bruce Wells2018-11-261-130/+133
| | | | | | * Updated from NeonXP/MathExecutor * Fixed function in () block issue
* Division By Zero Exception supportBruce Wells2018-10-313-1/+66
| | | | | | 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-246-1/+57
|
* Fixed merge errorBruce Wells2018-09-121-13/+0
|
* Merge branch 'master' into support_for_double_quoted_stringsBruce Wells2018-09-121-0/+12
|\
| * Merge branch 'master' into devAlexander Kiryukhin2018-09-064-5/+27
| |\
| | * Merge branch 'master' into getters_for_function_and_operatorsAlexander Kiryukhin2018-09-063-5/+5
| | |\
| | * | Add ability to get functions and operators that have been registeredBruce Wells2018-08-311-0/+22
| | | |
| * | | Exception MessagesBruce Wells2018-08-282-4/+4
| |/ / | | | | | | | | | Basically the token that is causing the exception for better diagnostics.
* | / Support for double quoted stringsBruce Wells2018-09-125-22/+73
| |/ |/| | | | | | | | | | | | | 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.
* | 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-064-4/+70
| | | | + Returned variables, because they need for cached expressions
* Mass refactoringNeonXP2013-09-0622-355/+847
| | | | | | | | | | | 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-034-0/+355