2015-02-17 19:25 GMT+03:00 Dmitry Stogov <dmi...@zend.com>: > I think yes, > However, Alexander thinks differently > https://wiki.php.net/rfc/parser-extension-api > Of course this is not for 7.0 >
This RFC consists of two parts: parsing API and parser extension API. Last one can be rejected, however it can be perfectly connected with annotation RFC (if AST will be used as values) As for annotations, general use-case is appreciated. This can be extended later in future versions of PHP. Therefore, annotation syntax should allow to define key and values. Value can be valid expression (AST? concrete node? compiled value?) or can recursively contain nested annotations.