Re: Doc Comments cause parser errors

From: Date: Wed, 02 Apr 2003 15:57:43 +0000
Subject: Re: Doc Comments cause parser errors
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-612@lists.php.net to get a copy of this message
At 18:51 02/04/2003, Andrei Zmievski wrote:
On Wed, 02 Apr 2003, Zeev Suraski wrote: I don't really like the idea of cluttering the parser with additional rules if it's not really necessary. I think that the idea proposed by Alan is actually the best way to go (keep the last comment in a global, use and reset it in the next relevant declaration implementation). IIRC, that's also the way the Zend Development Environment does the job :) What about this case:
        $a = 5;
        /**
        * set $b to 3
        */
        $b = 3;
        class Bar {
        }
We don't want to apply this doc comment to class Bar, so it needs to be reset on every statement, basically. Isn't that right?
Probably, yes. I think Alan mentioned it. Zeev

« previous php.internals (#612) next »