Re: Moving to an AST-based parsing/compilation process

From: Date: Tue, 04 Sep 2012 20:45:57 +0000
Subject: Re: Moving to an AST-based parsing/compilation process
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-62817@lists.php.net to get a copy of this message
> Some people asked me what the advantages of using an AST-based > parsing/compilation process are, so I put together a few quick notes > in an RFC: > > https://wiki.php.net/rfc/ast_based_parsing_compilation_process > > It would be nice to get a few comments from other core devs on this. Pardon my obviously amateur question, but would you build an AST-based compiler/parser to generate the same (minus the ones you intend to eliminate) opcodes to run on the VM in the same way as the current compiler does? Would tools like XDebug, APC, Zend PHP encoder (or whatever that's called this week), etc. be compatible out of the box, or would changes need to be made to them? Also, here is a potential starting point if you're less allergic to OCaml than I am: https://github.com/facebook/pfff S

« previous php.internals (#62817) next »