@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üter <johan...@schlueters.de>

> On Sat, 2010-11-27 at 23:14 +0100, Johannes Schlüter 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
>
>

Reply via email to