From eb9c3651614dd5e5aef067880092e9f622c264df Mon Sep 17 00:00:00 2001 From: zhukv Date: Sat, 3 Aug 2013 13:47:47 +0300 Subject: Fix to PSR standart, fix tokenizer, fix function executor. --- src/NXP/Exception/IncorrectExpressionException.php | 19 +++++++++++++++++++ src/NXP/Exception/MathExecutorException.php | 19 +++++++++++++++++++ src/NXP/Exception/UnknownFunctionException.php | 19 +++++++++++++++++++ src/NXP/Exception/UnknownOperatorException.php | 19 +++++++++++++++++++ src/NXP/Exception/UnknownTokenException.php | 19 +++++++++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 src/NXP/Exception/IncorrectExpressionException.php create mode 100644 src/NXP/Exception/MathExecutorException.php create mode 100644 src/NXP/Exception/UnknownFunctionException.php create mode 100644 src/NXP/Exception/UnknownOperatorException.php create mode 100644 src/NXP/Exception/UnknownTokenException.php (limited to 'src/NXP/Exception') diff --git a/src/NXP/Exception/IncorrectExpressionException.php b/src/NXP/Exception/IncorrectExpressionException.php new file mode 100644 index 0000000..ad5bc42 --- /dev/null +++ b/src/NXP/Exception/IncorrectExpressionException.php @@ -0,0 +1,19 @@ + + */ +class IncorrectExpressionException extends \Exception +{ +} diff --git a/src/NXP/Exception/MathExecutorException.php b/src/NXP/Exception/MathExecutorException.php new file mode 100644 index 0000000..0e3ea84 --- /dev/null +++ b/src/NXP/Exception/MathExecutorException.php @@ -0,0 +1,19 @@ + + */ +abstract class MathExecutorException extends \Exception +{ +} diff --git a/src/NXP/Exception/UnknownFunctionException.php b/src/NXP/Exception/UnknownFunctionException.php new file mode 100644 index 0000000..5bb3658 --- /dev/null +++ b/src/NXP/Exception/UnknownFunctionException.php @@ -0,0 +1,19 @@ + + */ +class UnknownFunctionException extends \Exception +{ +} diff --git a/src/NXP/Exception/UnknownOperatorException.php b/src/NXP/Exception/UnknownOperatorException.php new file mode 100644 index 0000000..b6617c3 --- /dev/null +++ b/src/NXP/Exception/UnknownOperatorException.php @@ -0,0 +1,19 @@ + + */ +class UnknownOperatorException extends \Exception +{ +} diff --git a/src/NXP/Exception/UnknownTokenException.php b/src/NXP/Exception/UnknownTokenException.php new file mode 100644 index 0000000..b8a593f --- /dev/null +++ b/src/NXP/Exception/UnknownTokenException.php @@ -0,0 +1,19 @@ + + */ +class UnknownTokenException extends \Exception +{ +} -- cgit v1.2.3