Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47088 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27387 invoked from network); 5 Mar 2010 01:21:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2010 01:21:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:59430] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/D7-07692-A8C509B4 for ; Thu, 04 Mar 2010 20:21:16 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id D6011E2031; Fri, 5 Mar 2010 01:21:11 +0000 (UTC) Date: Fri, 5 Mar 2010 01:21:11 +0000 (GMT) X-X-Sender: derick@kossu.derickrethans.nl To: Vsevolod Velichko cc: internals@lists.php.net In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Hacking language syntax From: derick@php.net (Derick Rethans) On Fri, 5 Mar 2010, Vsevolod Velichko wrote: > I wish to add some syntax to PHP (at first, I want to modify `while` > loop, to implement Dijkstra loop) and I've found some old thread about > modifying core, but I have no idea, how to do it by extension. I > suppose that it possible, since Facebook, as I know, introduced some > constructions in its HipHop. But HipHop is rather complex and aimed to > do incredibly more things, rather than add one construction, so it's > rather hard to study. I'll be glad if someone tell me what to look at > for implementing new constructions as an extension. You can't. You need to modify the current engine to add new language constructs. Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug