Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83082 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62354 invoked from network); 18 Feb 2015 15:22:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 15:22:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=lisachenko.it@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lisachenko.it@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: lisachenko.it@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:36762] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/21-56339-03EA4E45 for ; Wed, 18 Feb 2015 10:22:25 -0500 Received: by wevk48 with SMTP id k48so1822083wev.3 for ; Wed, 18 Feb 2015 07:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OWYd1fVh4YjMEvNZkw3ty2G80wFhgyHXEI8+td0PO0o=; b=KeJygKfgQjJXMYUvqnQFOcHAwcj/AlLpA9IAaf7QoItt5PASsBB3XQFC/FWOD+Mr5c Qejsve0YxSEyLWGfGtZbJyi6z1CynW3nxaGz4+pSpUi8CwZifOFK6x+O8zF3X8uznro8 f8c8yEC5i8MyL4t8Ohu4paDbxqXD9yDpITxeuY8PKBLqREJKEY1SCMQqmtfH34iimr6l 2NE+N1/6D5vjFpj3jFa0zLQl8uDea4bBSeSbIJh71xCX7dBcFLESqCbSsr32ol/rtQ/C RLMsgdtU43caiVGy97rZ8itCcU4u5jGMeIXIa9exZeKO7aXqfgTBBIwry37b/vAYQyME WRUA== MIME-Version: 1.0 X-Received: by 10.194.75.193 with SMTP id e1mr9035816wjw.126.1424272942103; Wed, 18 Feb 2015 07:22:22 -0800 (PST) Received: by 10.194.154.229 with HTTP; Wed, 18 Feb 2015 07:22:21 -0800 (PST) In-Reply-To: References: Date: Wed, 18 Feb 2015 18:22:21 +0300 Message-ID: To: Nikita Popov Cc: Dmitry Stogov , Nikita Popov , PHP internals list Content-Type: multipart/alternative; boundary=047d7bb03ea8c705eb050f5e62af Subject: Re: [PHP-DEV] [RFC][Discussion] Parser extension API From: lisachenko.it@gmail.com (Alexander Lisachenko) --047d7bb03ea8c705eb050f5e62af Content-Type: text/plain; charset=UTF-8 2015-02-18 17:59 GMT+03:00 Nikita Popov : > Alexander, I would recommend you to split this into two RFCs, one dealing > only with AST export (and maybe pretty printing) and the second one with > the compilation hooks. There's probably a few questions about the export > API that should be discussed that will be forgotten if everyone focuses on > the more complicated, and probably not yet relevant, question of > compilation hooks. Hello, Nikita! Thanks for you thoughts! Sounds reasonable for me, because of short timeframe for PHP7. Let's go with the first part of RFC, because second part is really cumbersome and can be applied later, eg. in 7.1 I will split this RFC into two parts and mark first part for 7.0. About first part, do you agree with proposed classes and namespace `Php\Parser`? I want to propose to use classes for parser API instead of pure functions because it can give more usable OO-API for future needs. There is one more notice regarding to the zval nodes, they should be also exported as objects, not as values. I think we should export coherent nodes for everything. --047d7bb03ea8c705eb050f5e62af--