Re: [PHP-DEV] Announcement: Next generation ext_skel

2003-02-21 Thread Andi Gutmans
It'd be nice to see an example of the XML. I liked the simplicity of 
today's prototype file, I'm not sure XML isn't an overkill.

Andi

At 11:24 AM 2/19/2003 +0100, Hartmut Holzgraefe wrote:

i've just added the first working results of a replacement for the good
old ext_skel script in php/scripts/ext_skel_ng
ext_skel_ng is meant to replace the current ext_skel completely, and IMHO
it is already at least as capable as the old one.
ext_skel_ng is a 'pure' php solution, it only depends on php itself and
the xml extension which is enabled by default
instead of a simple proto file and some command line options it is now
completely driven by an XML file similar to (and inspired by) the PEAR
package.xml format
code generation is already a little more clever than the previous
template apporach, and preliminary support for M$ developer studio
.dsp project files has just been added :)
see the attached README file below for further info ...



- php/scripts/ext_skel_ng/README 

sorry, no real documentation yet ...
just a short look at what is going on
ext_skel_ng.php gets an extension description
from an extension.xml file and generates working
code and documentation stubs from that
call php ext_skel_ng.php to see it at work,
it will create a dummy extension including
- module globals and ini paramter setup
- function registration and stubbs
- documentation framework
- config.m4 (only minimal for now)
- ...
almost every aspect of an extension may now be
configured using one xml description file instead
of the old mixture of command line parameters
and a proto file
it is even possible to embed function code into
the xml description right away, so it should be
possible to create complete working extensions
from just the xml description without further
editing in a not to distant future
for now almost all the 'helpfull comments' have
been removed from the generated code. some of
them (like 'uncomment this if you have ini params)
just don't make sense anymore, others will come
back (configurable) at a later state
... have fun!

--
Six Offene Systeme GmbH http://www.six.de/
i.A. Hartmut Holzgraefe Email: hartmut@xx   Tel.: +49-711-99091-77
Sie finden uns auf der CeBIT in Halle 6/H44   http://www.six.de/cebit2003/

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] Announcement: Next generation ext_skel

2003-02-19 Thread Hartmut Holzgraefe

i've just added the first working results of a replacement for the good
old ext_skel script in php/scripts/ext_skel_ng

ext_skel_ng is meant to replace the current ext_skel completely, and IMHO
it is already at least as capable as the old one.

ext_skel_ng is a 'pure' php solution, it only depends on php itself and
the xml extension which is enabled by default

instead of a simple proto file and some command line options it is now
completely driven by an XML file similar to (and inspired by) the PEAR
package.xml format

code generation is already a little more clever than the previous
template apporach, and preliminary support for M$ developer studio
.dsp project files has just been added :)

see the attached README file below for further info ...




- php/scripts/ext_skel_ng/README 

sorry, no real documentation yet ...
just a short look at what is going on

ext_skel_ng.php gets an extension description
from an extension.xml file and generates working
code and documentation stubs from that

call php ext_skel_ng.php to see it at work,
it will create a dummy extension including

- module globals and ini paramter setup
- function registration and stubbs
- documentation framework
- config.m4 (only minimal for now)
- ...

almost every aspect of an extension may now be
configured using one xml description file instead
of the old mixture of command line parameters
and a proto file

it is even possible to embed function code into
the xml description right away, so it should be
possible to create complete working extensions
from just the xml description without further
editing in a not to distant future

for now almost all the 'helpfull comments' have
been removed from the generated code. some of
them (like 'uncomment this if you have ini params)
just don't make sense anymore, others will come
back (configurable) at a later state

... have fun!


--
Six Offene Systeme GmbH http://www.six.de/
i.A. Hartmut Holzgraefe Email: [EMAIL PROTECTED]   Tel.: +49-711-99091-77

Sie finden uns auf der CeBIT in Halle 6/H44   http://www.six.de/cebit2003/


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php