Re: Re: Moving to an AST-based parsing/compilation process
| From: | Stas Malyshev | Date: | Thu, 06 Sep 2012 09:25:59 +0000 |
| Subject: | Re: Re: Moving to an AST-based parsing/compilation process | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62857@lists.php.net to get a copy of this message | ||
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 gets rid of all corner cases you are in
for a big surprise. AST is not magic and parser will always be written
exactly the way it is written - so if somebody won't implement certain
feature in a consistent way, it won't be implemented in consistent way,
AST or not.
And it's a bit late to take design decisions on existing PHP language,
it seems to me.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227