cvs: pear /SQL_Parser Lexer.php
| From: | Brent Cook | Date: | Tue, 01 Oct 2002 03:54:49 +0000 |
| Subject: | cvs: pear /SQL_Parser Lexer.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-6788@lists.php.net to get a copy of this message | ||
busterb Mon Sep 30 23:54:49 2002 EDT
Modified files:
/pear/SQL_Parser Lexer.php
Log:
Return + signs before numbers as separate symbols, rather than counting this as
a positive number (- signs still make a negative number)
Index: pear/SQL_Parser/Lexer.php
diff -u pear/SQL_Parser/Lexer.php:1.1 pear/SQL_Parser/Lexer.php:1.2
--- pear/SQL_Parser/Lexer.php:1.1 Tue Sep 24 13:06:58 2002
+++ pear/SQL_Parser/Lexer.php Mon Sep 30 23:54:48 2002
@@ -18,7 +18,7 @@
// | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA|
// +----------------------------------------------------------------------+
//
-// $Id: Lexer.php,v 1.1 2002/09/24 17:06:58 busterb Exp $
+// $Id: Lexer.php,v 1.2 2002/10/01 03:54:48 busterb Exp $
//
include 'SQL/ctype.php';
@@ -134,7 +134,7 @@
$this->unget();
}
}
- if ($c == '-' || $c == '+') {
+ if ($c == '-') {
$state = 9;
break;
}
@@ -234,7 +234,7 @@
return 'real_val';
// }}}
- // {{{ State 9: Incomplete signed number
+ // {{{ State 9: Incomplete negative number
case 9:
$c = $this->get();
if (ctype_digit(ord($c))) {