]> granicus.if.org Git - php/commitdiff
Simplify
authorZeev Suraski <zeev@php.net>
Sun, 22 Jun 2003 10:12:25 +0000 (10:12 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 22 Jun 2003 10:12:25 +0000 (10:12 +0000)
Zend/zend_language_parser.y

index 716e5568a06f721e372ab7a3933e12b619f88afd..5d8a9d28e54c215945ccdd0db7fb7137975b5428 100644 (file)
@@ -598,15 +598,10 @@ fully_qualified_class_name:
 ;
 
 dynamic_class_name:
-               static_or_variable_string { zend_do_fetch_class(&$$, &$1 TSRMLS_CC); }
+               T_STRING                                                        { zend_do_fetch_class(&$$, &$1 TSRMLS_CC); }
+       |       r_variable_without_static_member        { zend_do_fetch_class(&$$, &$1 TSRMLS_CC); }
 ;
 
-static_or_variable_string:
-               T_STRING        { $$ = $1; }
-       |       r_variable_without_static_member        { $$ = $1; }
-;
-
-
 exit_expr:
                /* empty */     { memset(&$$, 0, sizeof(znode)); $$.op_type = IS_UNUSED; }      
        |       '(' ')'         { memset(&$$, 0, sizeof(znode)); $$.op_type = IS_UNUSED; }