aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes
Commit message (Collapse)AuthorAgeFilesLines
* Support for better invalid expression detection and divide by zero (#30)Bruce Wells2018-10-256-1/+53
| | | | | | | | * Additional validation for bad expressions (*+ for example) * Removing DivisionByZeroException testing for now Added more unit tests.
* 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