aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Lexer.php
Commit message (Collapse)AuthorAgeFilesLines
* WIP: New generation (#62)Alexander Kiryukhin2020-05-201-161/+0
| | | | | | | | | | | | | | * Massive refactoring More clean structure Parsing without regular expressions * Cleanup unused imports * Fix version string for Travis * 7.1 downgrade * Fix readme
* Negative expression start (#60)V1.1.4Bruce Wells2020-04-211-2/+2
| | | | | * Update documentation for PHPFUI/InstaDoc * Support for negative numbers starting paren enclosed expressions
* Update documentation for PHPFUI/InstaDoc (#58)Bruce Wells2020-04-111-0/+1
|
* Fix substraction by zero bug (#56)Clément Lafont2020-02-071-2/+14
|
* Subtraction fix (#46)v0.8.0Bruce Wells2019-08-161-2/+18
| | | | | * Updated unit tests * Fixed docs * Better unary minus support
* Fixed comma operatorBruce Wells2019-01-161-3/+6
| | | | | Added unit tests for expressions in function arguments. Changed array_push to $var[] = native code.
* sync (#5)Bruce Wells2019-01-111-133/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 in () block issueBruce Wells2018-11-261-130/+133
|
* 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