Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50645 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51391 invoked from network); 27 Nov 2010 23:13:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2010 23:13:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=m4rw3r@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=m4rw3r@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: m4rw3r@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:42970] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/33-29052-6B091FC4 for ; Sat, 27 Nov 2010 18:13:58 -0500 Received: by gxk20 with SMTP id 20so1636122gxk.29 for ; Sat, 27 Nov 2010 15:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=4qt2rgr3KUEdqHb/q6BH1uzRTCdUfuIQ3lrrgWyjYwI=; b=OX9pvii6iVfrvefgnFaAOYydHgRk/6CQSD8i99bqJWpvL4EyJzQLgbf1U/Ve/Yn8qg DuRlhRRlqw4zO6pvcy+oCbBOFgFvRPGQPmHxPSgUI/9/Teu/2LvvQPEj2vrIgF1IRpJ0 LLIXOA3Ul0ZmMcQE5zmAaJjB2f1CEZwERgD3k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=d9lpsiLPXFlJWSz5uTeW72TtX/qVF2AOCIYoieMOiC3UvTn/zR6Vs2zSl3mZgDarK4 USJ9Iq+roI+/bt3Uqp9NVvI6f0xGikJZXr9fMVYvZbo/ICxM5sqp7tzQt1UhRX/u1xG4 cBs6LcpGaXcZYhHc1KzXZZHNsqnVY24HQbLnk= MIME-Version: 1.0 Received: by 10.100.227.7 with SMTP id z7mr2825405ang.210.1290899635631; Sat, 27 Nov 2010 15:13:55 -0800 (PST) Received: by 10.100.164.16 with HTTP; Sat, 27 Nov 2010 15:13:55 -0800 (PST) In-Reply-To: <1290896482.7033.860.camel@guybrush> References: <1290879624.7033.826.camel@guybrush> <01CEF2CA-065B-47E6-987F-4FB98B9A6F88@naenius.com> <1290896074.7033.859.camel@guybrush> <1290896482.7033.860.camel@guybrush> Date: Sun, 28 Nov 2010 00:13:55 +0100 Message-ID: To: PHP internals list Content-Type: multipart/alternative; boundary=00504502ebdf38f4a7049610febc Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: m4rw3r@gmail.com (Martin Wernstahl) --00504502ebdf38f4a7049610febc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable @Johannes: The T_STRING token never contains "$", AFAIK all identifiers starting with "$" are instead classed as T_VARIABLE tokens. So you'd search for the visibility modifier (+ static, etc.) + T_STRING for methods, and visibility (+ static) + T_VARIABLE for properties. Martin 2010/11/27 Johannes Schl=FCter > On Sat, 2010-11-27 at 23:14 +0100, Johannes Schl=FCter wrote: > > > [ T_PUBLIC | T_PROTECTED | T_PRIVATE | T_STATIC | T_ABSTRACT ] { & } > T_STRING "(" param_list ")" { "{" statement_ist "}" } > > I forgot T_FINAL there. > > johannes > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --00504502ebdf38f4a7049610febc--