@@ 2936-2940 (lines=5) @@ | ||
2933 | } |
|
2934 | $substr = 'true'; |
|
2935 | $type = self::T_BOOL; |
|
2936 | } elseif ($substr === 'null' || $substr === 'NULL') { |
|
2937 | if ($this->debug) { |
|
2938 | echo 'NULL PARSED' . "\n"; |
|
2939 | } |
|
2940 | $substr = 'null'; |
|
2941 | $type = self::T_NULL; |
|
2942 | } elseif (is_numeric($substr)) { |
|
2943 | $substr = (float)$substr; |
|
@@ 2951-2955 (lines=5) @@ | ||
2948 | if ($this->debug) { |
|
2949 | echo 'NUMBER (' . $substr . ') PARSED' . "\n"; |
|
2950 | } |
|
2951 | } elseif (preg_match('{^-?(\d+|\d*(\.\d+))\s*([/*%+-]\s*-?(\d+|\d*(\.\d+)))+$}', $substr)) { |
|
2952 | if ($this->debug) { |
|
2953 | echo 'SIMPLE MATH PARSED . "\n"'; |
|
2954 | } |
|
2955 | $type = self::T_MATH; |
|
2956 | $substr = '(' . $substr . ')'; |
|
2957 | } elseif ($curBlock === 'condition' && array_search($substr, $breakChars, true) !== false) { |
|
2958 | if ($this->debug) { |