aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Lexer.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix single quotes parsing (#41)Alexander Kiryukhin2019-01-111-133/+129
| | | | | | | | | | * Fix single quotes parsing Fix e-mails Some small fixes * Mistake in test * More PHP versions
* 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
* Support for double quoted stringsBruce Wells2018-09-121-3/+7
| | | | | | | | 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.
* Bug fixes about "Undefined offset -1" if stack is empty array and token ↵ochi512017-09-121-2/+2
| | | | association is RIGHT_ASSOC
* ~ 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-061-0/+4
| | | | + Returned variables, because they need for cached expressions
* Mass refactoringNeonXP2013-09-061-0/+121
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