| @@ 2897-2901 (lines=5) @@ | ||
| 2894 | } |
|
| 2895 | $substr = 'true'; |
|
| 2896 | $type = self::T_BOOL; |
|
| 2897 | } elseif ($substr === 'null' || $substr === 'NULL') { |
|
| 2898 | if ($this->debug) { |
|
| 2899 | echo 'NULL PARSED' . "\n"; |
|
| 2900 | } |
|
| 2901 | $substr = 'null'; |
|
| 2902 | $type = self::T_NULL; |
|
| 2903 | } elseif (is_numeric($substr)) { |
|
| 2904 | $substr = (float)$substr; |
|
| @@ 2912-2916 (lines=5) @@ | ||
| 2909 | if ($this->debug) { |
|
| 2910 | echo 'NUMBER (' . $substr . ') PARSED' . "\n"; |
|
| 2911 | } |
|
| 2912 | } elseif (preg_match('{^-?(\d+|\d*(\.\d+))\s*([/*%+-]\s*-?(\d+|\d*(\.\d+)))+$}', $substr)) { |
|
| 2913 | if ($this->debug) { |
|
| 2914 | echo 'SIMPLE MATH PARSED . "\n"'; |
|
| 2915 | } |
|
| 2916 | $type = self::T_MATH; |
|
| 2917 | $substr = '(' . $substr . ')'; |
|
| 2918 | } elseif ($curBlock === 'condition' && array_search($substr, $breakChars, true) !== false) { |
|
| 2919 | if ($this->debug) { |
|