Reply to Re: Getting class object information from file.

Your name:

Reply:


Posted by elmosik on 09/27/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

[Back to original 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

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