From 00def17f0e9183544813427cddbdaed851986309 Mon Sep 17 00:00:00 2001 From: Bruce Wells Date: Wed, 12 Sep 2018 11:55:31 -0400 Subject: 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. --- src/NXP/Classes/Token/TokenString.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/NXP/Classes/Token/TokenString.php (limited to 'src/NXP/Classes/Token/TokenString.php') diff --git a/src/NXP/Classes/Token/TokenString.php b/src/NXP/Classes/Token/TokenString.php new file mode 100644 index 0000000..cab0711 --- /dev/null +++ b/src/NXP/Classes/Token/TokenString.php @@ -0,0 +1,25 @@ + + */ +class TokenString extends AbstractContainerToken +{ + /** + * @return string + */ + public static function getRegex() + { + return '"([^"]|"")*"'; + } +} -- cgit v1.2.3