Re: generating code from AST
| From: | David Walker | Date: | Tue, 07 Mar 2017 06:01:43 +0000 |
| Subject: | Re: generating code from AST | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98416@lists.php.net to get a copy of this message | ||
On Mon, Mar 6, 2017 at 22:55 Sebastian Bergmann <sebastian@php.net> wrote:
> Am 06.03.2017 um 22:40 schrieb Sara Golemon:
> > https://github.com/sgolemon/astkit
>
> There's also https://github.com/nikic/php-ast.
>
> But wouldn't it be great if PHP 7.2 shipped with a built-in,
> enabled-by-default extension for AST operations?
I'd be happy if this were to go forward. When/if there are changes to AST,
having a tool like these in core would require them to be updated at the
same time.
Would this concept also want to extend to a VLD-esque extension as well for
the same reasons? I'd be receptive for abilities to expose the core
internal ast/ops to userland more easily as a core extension
However I'm sure there are valid reasons why VLD (or similar) have not been
included; and would wonder if those would also end up applying to the AST
--
Dave
>