diff options
author | Bruce Wells <bruce.wells@simparel.com> | 2018-09-12 18:55:31 +0300 |
---|---|---|
committer | Bruce Wells <bruce.wells@simparel.com> | 2018-09-12 19:33:17 +0300 |
commit | 00def17f0e9183544813427cddbdaed851986309 (patch) | |
tree | fcc3e47fdf11465e2566e9c6f71e7a80488da6a8 /src/NXP/Exception | |
parent | 855ca5dfc1a6d70d9872df4b0d7bea8ba3c4c040 (diff) |
Support for double quoted strings
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.
Diffstat (limited to 'src/NXP/Exception')
-rw-r--r-- | src/NXP/Exception/IncorrectBracketsException.php | 2 | ||||
-rw-r--r-- | src/NXP/Exception/IncorrectExpressionException.php | 2 | ||||
-rw-r--r-- | src/NXP/Exception/UnknownFunctionException.php | 2 | ||||
-rw-r--r-- | src/NXP/Exception/UnknownOperatorException.php | 2 | ||||
-rw-r--r-- | src/NXP/Exception/UnknownTokenException.php | 2 | ||||
-rw-r--r-- | src/NXP/Exception/UnknownVariableException.php | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/NXP/Exception/IncorrectBracketsException.php b/src/NXP/Exception/IncorrectBracketsException.php index e2aaed9..b3e8315 100644 --- a/src/NXP/Exception/IncorrectBracketsException.php +++ b/src/NXP/Exception/IncorrectBracketsException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Alexander Kiryukhin <alexander@symdev.org> */ -class IncorrectBracketsException extends \Exception +class IncorrectBracketsException extends MathExecutorException { } diff --git a/src/NXP/Exception/IncorrectExpressionException.php b/src/NXP/Exception/IncorrectExpressionException.php index ad5bc42..6f579c1 100644 --- a/src/NXP/Exception/IncorrectExpressionException.php +++ b/src/NXP/Exception/IncorrectExpressionException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Vitaliy Zhuk <zhuk2205@gmail.com> */ -class IncorrectExpressionException extends \Exception +class IncorrectExpressionException extends MathExecutorException { } diff --git a/src/NXP/Exception/UnknownFunctionException.php b/src/NXP/Exception/UnknownFunctionException.php index 5bb3658..e8ff0c0 100644 --- a/src/NXP/Exception/UnknownFunctionException.php +++ b/src/NXP/Exception/UnknownFunctionException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Vitaliy Zhuk <zhuk2205@gmail.com> */ -class UnknownFunctionException extends \Exception +class UnknownFunctionException extends MathExecutorException { } diff --git a/src/NXP/Exception/UnknownOperatorException.php b/src/NXP/Exception/UnknownOperatorException.php index b6617c3..acb4b98 100644 --- a/src/NXP/Exception/UnknownOperatorException.php +++ b/src/NXP/Exception/UnknownOperatorException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Vitaliy Zhuk <zhuk2205@gmail.com> */ -class UnknownOperatorException extends \Exception +class UnknownOperatorException extends MathExecutorException { } diff --git a/src/NXP/Exception/UnknownTokenException.php b/src/NXP/Exception/UnknownTokenException.php index b8a593f..bba28a4 100644 --- a/src/NXP/Exception/UnknownTokenException.php +++ b/src/NXP/Exception/UnknownTokenException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Vitaliy Zhuk <zhuk2205@gmail.com> */ -class UnknownTokenException extends \Exception +class UnknownTokenException extends MathExecutorException { } diff --git a/src/NXP/Exception/UnknownVariableException.php b/src/NXP/Exception/UnknownVariableException.php index 8de9493..8c215db 100644 --- a/src/NXP/Exception/UnknownVariableException.php +++ b/src/NXP/Exception/UnknownVariableException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Alexander Kiryukhin <alexander@symdev.org> */ -class UnknownVariableException extends \Exception +class UnknownVariableException extends MathExecutorException { } |