On Wed, Feb 18, 2015 at 11:22 AM, Dmitry Stogov <dmi...@zend.com> wrote:
> I think the AST API shouldn't use "public" properties.
> Using it, we will have to construct the whole tree of objects, duplicating
> information from AST.
> I would propose SimpleXML approach instead - construct object only for
> node(s) we currently access.
>
> So at first we will construct just single object referring to AST root.
> Then traversing it we will create and destroy objects for necessary nodes.
>
I'm not sure if you've seen my astkit extension, but it does this.

https://github.com/sgolemon/astkit

-Sara

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to