From 9cdc34290a84093b1c4640118289a7cf56d55125 Mon Sep 17 00:00:00 2001 From: NeonXP Date: Fri, 6 Sep 2013 05:42:09 +0400 Subject: Mass refactoring 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 --- src/NXP/Classes/Token/TokenRightBracket.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/NXP/Classes/Token/TokenRightBracket.php (limited to 'src/NXP/Classes/Token/TokenRightBracket.php') diff --git a/src/NXP/Classes/Token/TokenRightBracket.php b/src/NXP/Classes/Token/TokenRightBracket.php new file mode 100644 index 0000000..c68473a --- /dev/null +++ b/src/NXP/Classes/Token/TokenRightBracket.php @@ -0,0 +1,25 @@ + + */ +class TokenRightBracket implements InterfaceToken +{ + /** + * @return string + */ + public static function getRegex() + { + return '\)'; + } +} -- cgit v1.2.3