Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98416 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13565 invoked from network); 7 Mar 2017 06:01:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2017 06:01:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=dave@mudsite.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dave+php@mudsite.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mudsite.com designates 209.85.217.178 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.217.178 mail-ua0-f178.google.com Received: from [209.85.217.178] ([209.85.217.178:34590] helo=mail-ua0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/90-27071-5DC4EB85 for ; Tue, 07 Mar 2017 01:01:58 -0500 Received: by mail-ua0-f178.google.com with SMTP id f54so194711149uaa.1 for ; Mon, 06 Mar 2017 22:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Wr46d8WabiSV3UTepCoELVnnXkyBJyGC8zWNJHm4xaM=; b=XhBDySdWC5s9209Hb2iRlD1LDxkSUYMWLXsuSC6IhXXc0LE7x/fTgjM0GjuX5A3Z/t BCd81tqowIW5idDd9QGIWnXGOi3RUbZqHC2pC3CZerMDtCe61KMZByzbxrs5AvIcTFZF xiDaJxKrw4i/Fnmxh5pVoJM6QCEYPFvaFrLpRYREzlxjsMqVrp3pJYFpUIkPmEMqibvP wqufKs5KxnivN0MqjZkeiTP5Cek/DbfyqrbaCetK3U2qk2yVdl6XWt2U9KE+imrfcmsw +u7cErbTXl9LwssC5C0M/MpCD8HyB/A6di/20Q9EcqydjJdje7WhHeab8dVrFG23hG5y FIIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Wr46d8WabiSV3UTepCoELVnnXkyBJyGC8zWNJHm4xaM=; b=tfsXsGRs5MHpvKGzhncOMqCn7XNJCGs+UZTWn41q45SbP5DotuccEQIyZ0voKA+H76 J8tTEcE+s4psEl1JOrSHjKt55bytBt/QwixY8NjJp5O6ONqMaTtJ9sfh6NApM5k2HvQT 2pxC4mWUk0Wtbp6CeNUT7SqS8y4UDRTl1elDiBqaXJ/23ZyIwlV2TJ+EX/RPJpulSTzJ e+IJ5Jlnub78xII6Qo9M4qjYHsJ/hnU47jSTXE92yZYWCkZ4GAAvtxazYC3QrXlscbWi 78/0QisjWoIzUtFtPPydEXhnAAmrcHWATHCSmqfPG6ps4i7FlH91F2FljOsJUbz+vhes YF/w== X-Gm-Message-State: AMke39lLWomTfWE0PDNGuEHm/8567rc9iBRjk6kKSNrwl1reH2lBbf9f+Xv3GyI+vqhd74ZnEfWXy9q6+V5Vjg== X-Received: by 10.31.194.200 with SMTP id s191mr8362705vkf.101.1488866514366; Mon, 06 Mar 2017 22:01:54 -0800 (PST) MIME-Version: 1.0 References: <0e19e041-4834-c24a-4239-036ab38fbda1@php.net> In-Reply-To: <0e19e041-4834-c24a-4239-036ab38fbda1@php.net> Date: Tue, 07 Mar 2017 06:01:43 +0000 Message-ID: To: Sebastian Bergmann , internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11439c8cb5071f054a1dbfb9 Subject: Re: [PHP-DEV] generating code from AST From: dave+php@mudsite.com (David Walker) --001a11439c8cb5071f054a1dbfb9 Content-Type: text/plain; charset=UTF-8 On Mon, Mar 6, 2017 at 22:55 Sebastian Bergmann wrote: > Am 06.03.2017 um 22:40 schrieb Sara Golemon: > > https://github.com/sgolemon/astkit > > There's also https://github.com/nikic/php-ast. > > But wouldn't it be great if PHP 7.2 shipped with a built-in, > enabled-by-default extension for AST operations? I'd be happy if this were to go forward. When/if there are changes to AST, having a tool like these in core would require them to be updated at the same time. Would this concept also want to extend to a VLD-esque extension as well for the same reasons? I'd be receptive for abilities to expose the core internal ast/ops to userland more easily as a core extension However I'm sure there are valid reasons why VLD (or similar) have not been included; and would wonder if those would also end up applying to the AST -- Dave > --001a11439c8cb5071f054a1dbfb9--