> On 8 Mar 2017, at 08:49, Sebastian Bergmann <sebast...@php.net> wrote:
> 
> Am 07.03.2017 um 11:33 schrieb Derick Rethans:
>> Because installing an extension is too hard?
> 
> No. To ensure that userland functionality that is based on compiler
> internals (token stream, abstract syntax tree, bytecode) does not fall out
> of sync with the compiler.
> 
> We already have an extension that is built-in and enabled-by-default for
> the token stream. Why not have one for the abstract syntax tree and
> bytecode representations?

To be honest, that’s exactly what we might want to avoid. Last time someone 
wanted to do actual improvements to our lexing they were stopped because 
changing tokens would mean breaking code that relies on `token_get_all()` which 
is a core extension user land function.

It might be though that it’s only the problem with lexing and it should not be 
a problem for AST because it is, ahem, abstract.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to