Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5955 invoked from network); 25 Mar 2009 17:51:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2009 17:51:59 -0000 X-Host-Fingerprint: 64.58.161.125 wsip-64-58-161-125.oc.oc.cox.net Received: from [64.58.161.125] ([64.58.161.125:9877] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/93-30978-F3F6AC94 for ; Wed, 25 Mar 2009 12:51:59 -0500 Message-ID: <0D.93.30978.F3F6AC94@pb1.pair.com> To: internals@lists.php.net Date: Wed, 25 Mar 2009 10:51:52 -0700 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 References: <14.C2.30978.F466AC94@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 64.58.161.125 Subject: Re: [PHP-DEV] Access to syntax tree? From: jeremy@pinacol.com (Jeremy) Alexey Zakhlestin wrote: > On Wed, Mar 25, 2009 at 8:13 PM, Jeremy wrote: >> Is there any way to access the parse tree of a PHP file from within PHP? > > will this work for you? > http://docs.php.net/manual/en/tokenizer.examples.php > That looks like it should work perfectly! Thanks for pointing this out; it's almost exactly what I was after. Jeremy