RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_globals.h zend_highlight.c zend_language_parser.y
zend_language_scanner.l

From: Date: Thu, 20 Mar 2003 17:33:49 +0000
Subject: RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_globals.h zend_highlight.c zend_language_parser.y
zend_language_scanner.l
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1059@lists.php.net to get a copy of this message
At 05:58 PM 3/19/2003 -0500, Andrei Zmievski wrote:
Andi, Yes, the comment is not processed it all, it is simply saved in CG(doc_comment). But there is nothing to associate it with the variable/function/class that it precedes. I thought of adding a couple of rules to the parser to store the doc comments in the appropriate structures, something like (can't remember all the names so just making them up): class_type_entry:
    simple_class_type_entry |
    doc_class_type_entry;
doc_class_type_entry: T_DOC_COMMENT class_declaration { zend_do_start_class_declaration(.. , .., $1); } And the zend_do_* functions would store the doc comment in zend_class_entry or zend_op_array, where appropriate. What do you think?
I think that's fine as long as we stick to functions and classes. Andi

« previous php.zend-engine.cvs (#1059) next »