cvs: php-lang / genoplist.php
[email protected] ("Sascha Schumann")
| Newsgroups | php.lang |
|---|---|
| Message-ID | <cvssas974844263@cvsserver> |
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";