diff options
Diffstat (limited to 'src/NXP/Classes/Token/TokenNumber.php')
-rw-r--r-- | src/NXP/Classes/Token/TokenNumber.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/NXP/Classes/Token/TokenNumber.php b/src/NXP/Classes/Token/TokenNumber.php new file mode 100644 index 0000000..763ca04 --- /dev/null +++ b/src/NXP/Classes/Token/TokenNumber.php @@ -0,0 +1,25 @@ +<?php +/** + * This file is part of the MathExecutor package + * + * (c) Alexander Kiryukhin + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code + */ + +namespace NXP\Classes\Token; + +/** + * @author Alexander Kiryukhin <alexander@symdev.org> + */ +class TokenNumber extends AbstractContainerToken +{ + /** + * @return string + */ + public static function getRegex() + { + return '\-?\d+\.?\d*'; + } +} |