Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30606 invoked from network); 17 Feb 2015 19:09:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2015 19:09:51 -0000 Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:57142] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/50-28194-AF193E45 for ; Tue, 17 Feb 2015 14:09:49 -0500 Received: from [192.168.2.80] (p50931bfd.dip0.t-ipconnect.de [::ffff:80.147.27.253]) (AUTH: PLAIN lars@schokokeks.org, TLS: TLSv1/SSLv3,256bits,ECDHE-RSA-AES256-SHA) by milch.schokokeks.org with ESMTPSA; Tue, 17 Feb 2015 20:09:42 +0100 id 0000000000000028.0000000054E391F6.00006E13 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_CB3BCB20-63C0-4D45-B084-BEDFC91827B2"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b5 In-Reply-To: Date: Tue, 17 Feb 2015 20:09:41 +0100 Cc: PHP internals list Message-ID: <3325DBCC-DF31-4CC7-B8DB-84E35170824D@strojny.net> References: To: Alexander Lisachenko X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [RFC][Discussion] Parser extension API From: lars@strojny.net (Lars Strojny) --Apple-Mail=_CB3BCB20-63C0-4D45-B084-BEDFC91827B2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Alexander, > On 17 Feb 2015, at 12:46, Alexander Lisachenko = wrote: >=20 > Hello, internals! >=20 > I want to introduce a RFC for providing a userland API for accessing = an > Abstract Syntax Tree of the source code and to provide userland parser > hooks for source code modification: > https://wiki.php.net/rfc/parser-extension-api Looks cool and I could see a couple of interesting possibilities = arising. One thing: any particular reason ExtensionInterface is static? = I could see a couple of benefits having extensions carry state and = registerExtension() taking an instance of ExtensionInterface, not a = class name. What do you think? cu, Lars --Apple-Mail=_CB3BCB20-63C0-4D45-B084-BEDFC91827B2 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIVAwUBVOOR9iQPF+sCY6wHAQJLog//fz6rhJLx0Vvt/DkPAiytSIODNn9bzfCZ rIW4nktBmDOdkDHoDVJLIJHAu4qTlbdm66hp7tMcH+lBaW8VqYJ7WRwdiXsA0fDh wXWNt7Fu+UL35wthDwRXqLDFUj7LxsLPHqHkCjLfqcqruCMAU7sZU8k7z84Db8Av yzbqo1tx4DLyEuovh1/obxGOfT/L5NeKLZ/MDxDpeWxWmiNVupTzAgIN3bQPph/e pSaJlqKk9PN3KYwIdllS1A+1M/nUoBBBkeiJPDYbLtGCRbOGt5TZP1q/Bas22VRr agvjTsYTOIEHfXGc4P3G7AHgAwNGRFGimN4Fii1aGS7X2MgnkHJOh4JU3CMjmdmE msgw+JJMi5oxGlvzxEWTdzPxPdVffOwhunob94foUgWq9gxsECbPWjrooruIwiW4 gfc4Pgjxq81JCmzrqEp3viou7ABvfEI+CSaX0vqDiG1M80qlMiW7Bw7hQ9lpkP57 z8izbVZ/076nvAAKI+HmQkPe7U8BYe3E9J72XSDjKvvLyqQ4R6mHiLAncRmzXFh/ byt5niFesW1Y/JPaa3sHzmChOyRNvjoyndn2N3JACrsn4q48NaK4Fo1TRI3Lv0k2 xmD/0zONtQYQ1XNZqEbcTqBVRkrVw6bWjbdQlOs12ePATCSbu+TUyhbfjloYuz6+ jzcjBzCdJxg= =JVc7 -----END PGP SIGNATURE----- --Apple-Mail=_CB3BCB20-63C0-4D45-B084-BEDFC91827B2--