Re: PHP Abstract Syntax Tree
| From: | William Candillon | Date: | Fri, 14 Apr 2006 08:06:59 +0000 |
| Subject: | Re: PHP Abstract Syntax Tree | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22754@lists.php.net to get a copy of this message | ||
I already wrote an program which converts PHP source code to AST but I don't
understand why the native PHP compiler doesn't use this approach.
On 4/14/06, Tomas Matousek <tomas_matousek@hotmail.com> wrote:
>
> Hi William,
> if you are interested in converting PHP source code to AST, you may find
> the
> Phalanger system useful.
> See http://php-compiler.net.
>
> Tomas
>
> ----- Original Message -----
> Hi,
>
> Is it planned to modify the PHP compiler in order to create an abstract
> syntax tree rather than generating directly the opcode ?
> It will allow to perform tasks like Type inference, optimization etc...
>
> Best regards,
>
> William
>
> --
> William Candillon
> Telecom Lille Student
> E-mail: wcandillon@elv.enic.fr
> Tel: +33(0) 6 67 99 13 16
> Resume: http://wcandillon.netcv.org
>
--
William Candillon
Telecom Lille Student
E-mail: wcandillon@elv.enic.fr
Tel: +33(0) 6 67 99 13 16
Resume: http://wcandillon.netcv.org