You are here: Re: Getting class object information from file. « PHP Programming Language « IT news, forums, messages
Re: Getting class object information from file.

Posted by elmosik on 10/14/74 12:00

On 17 Sty, 13:29, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:

> Regular expressions simply do not cut it. Consider the following comments
> which will not be caught by your regular expressions:
>
> define('SOME_CONFIG_OPTION', TRUE); # Here is a comment
> define('SOME_OTHER_OPTION', TRUE); // Here is a comment
>

define('SOME_CONFIG_OPTION', TRUE); # class foo() { function bar(){} }

class MyClass extends XXX
{
/* some comment */ function foo() {}
}

.... works correctly in above cases.

Comment after define() is ignored so function bar() is not listed in
results same like with '//'.
Comment before foo() method in class is listed in results.

Everything works fine for me, remember that isn't a universal parser I
need it only working for my specified schema.

--
Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация