Hello,

First of all you have contacted the php webmaster mailing list which is
responsible for the php.net website and other web infrastructure related
issues.

What you want there is to extend the core functionality of PHP without any
added value I would say, but if you still want to look into this contact
the php-internals mailing list, but first look at
http://www.phpinternalsbook.com/ and also
https://github.com/php/php-langspec.

Stelian

On Wed, Feb 4, 2015 at 4:50 PM, ENetArch . <[email protected]> wrote:

> Dear PHP,
>
> Is there documentation on how to add keywords and functionality to PHP's
> keyword list?  After searching for 30 mins using the terms Extending,
> Adding, Language, Keywords, PHP .. I don't seem to see a thread on this
> subject.
>
> The keywords I would like to add are DOCUMENT, TEST, genManual, and
> runTests.  They would be used as part of the function declaration:
>
> Document Function drawCircle () {}
>
> The return value would be a Name Value pair array which could then be
> processed by a user created / assigned special function. Similar to Class
> AutoLoader.
>
> The functions would be kicked off by another keyword .. genManual.
>
> The TEST keyword would be the same.  It would return boolean success or
> failure.  And would be executed with .. runTests.
>
> Test Function drawCircle ()
> {
>     $bSuccess = True;
>
>     $bSuccess &= Class::drawCircle ([params]); // test 1
>     ...
>     $bSuccess &= Class::drawCircle ([params]); // test n
>
>     return ($bSuccess);
> }
>
> Please let me know,
>
> Mike,
>

Reply via email to