cvs: php-lang / genoplist.php
| From: | Sascha Schumann | Date: | Tue, 21 Nov 2000 22:04:23 +0000 |
| Subject: | cvs: php-lang / genoplist.php | ||
| Groups: | php.lang | ||
| Request: | Send a blank email to php-lang+get-74@lists.php.net to get a copy of this message | ||
sas Tue Nov 21 14:04:23 2000 EDT
Modified files:
/php-lang genoplist.php
Log:
PHP 3 differentiates between logical and boolean operators. I'm not sure
why this happens, but I'll add it for now. Explanations or pointers
are appreciated.
Index: php-lang/genoplist.php
diff -u php-lang/genoplist.php:1.1 php-lang/genoplist.php:1.2
--- php-lang/genoplist.php:1.1 Tue Nov 21 13:50:27 2000
+++ php-lang/genoplist.php Tue Nov 21 14:04:23 2000
@@ -2,7 +2,7 @@
# Generate a cascade of rules for operators
# Higher rules have precedence
-# $Id: genoplist.php,v 1.1 2000/11/21 21:50:27 sas Exp $
+# $Id: genoplist.php,v 1.2 2000/11/21 22:04:23 sas Exp $
$a = array(
"multiplicative", "*,/,%",
@@ -14,8 +14,11 @@
"and", "&",
"exclusive-or", "^",
"inclusive-or", "|",
- "logical-and", "&&",
- "logical-or", "||"
+ "boolean-and", "&&",
+ "boolean-or", "||",
+ "logical-and", "AND",
+ "logical-exclusive-or", "XOR",
+ "logical-inclusive-or", "OR",
);
$last = "cast";