Re: Doc Comments cause parser errors

From: Date: Wed, 02 Apr 2003 15:51:57 +0000
Subject: Re: Doc Comments cause parser errors
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-611@lists.php.net to get a copy of this message
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? -Andrei http://www.gravitonic.com/ * Anything will fit if you push hard enough. *

« previous php.internals (#611) next »