Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-06 Thread Anthony Ferrara
Stas, On Thu, Sep 6, 2012 at 5:25 AM, Stas Malyshev wrote: > Hi! > > > Well, apart from perhaps leaving them with a simpler language that > > doesn't have the inconsistencies and corner cases that currently exist > > (and documented ad nauseum) not because of any design decision but > > "because

Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-06 Thread Andrew Faulds
Stas Malyshev wrote: >Hi! > >> Well, apart from perhaps leaving them with a simpler language that >> doesn't have the inconsistencies and corner cases that currently >exist >> (and documented ad nauseum) not because of any design decision but >> "because the parser is written that way". > >I

Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-06 Thread Stas Malyshev
Hi! > Well, apart from perhaps leaving them with a simpler language that > doesn't have the inconsistencies and corner cases that currently exist > (and documented ad nauseum) not because of any design decision but > "because the parser is written that way". If you think writing new parser get

Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-06 Thread Morgan L. Owens
On 2012-09-06 10:39, Stas Malyshev wrote: Hi! ... and no real benefit for average PHP user. Well, apart from perhaps leaving them with a simpler language that doesn't have the inconsistencies and corner cases that currently exist (and documented ad nauseum) not because of any design decision

Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-06 Thread Ivan Enderlin @ Hoa
On 05/09/12 18:59, Andrew Faulds wrote: On 05/09/12 13:48, Morgan L. Owens wrote: I'm not a core dev, but I would like to add to the notes above that "third parties", such as myself, who want to do things with PHP source other than run it through a PHP interpreter would also appreciate such a

Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-05 Thread Stas Malyshev
Hi! > To date, I've been basing work, which exposes syntactic structure, on > phc's maketea grammar (Phalanger's is more up to date, but also more > complicated what with its provenance and the Linq and generics and all), > but it's reverse-engineered and certainly wrong (oh, that reminds > me

Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-05 Thread Andrew Faulds
On 05/09/12 13:48, Morgan L. Owens wrote: I'm not a core dev, but I would like to add to the notes above that "third parties", such as myself, who want to do things with PHP source other than run it through a PHP interpreter would also appreciate such a separation of concerns. To date, I've b

[PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-05 Thread Morgan L. Owens
On 2012-09-05 07:57, Nikita Popov wrote: Hey folks! 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 commen