|
Posted by gosha bine on 04/30/07 08:20
On 29.04.2007 15:39 Sebosac wrote:
> Hi,
>
> i need to write a php script parser but i don't really succes to wrote
> one and i finaly i don't know how do this !
Well, to write a php parser you first need a parser generator like yacc
or bison. I'm not aware of any one that is able to generate php code,
but try googling "php parser generator". When you get the parser, write
the php grammar for it (or adapt zend_language_parser.y from php
sources). Fill your grammar with appropriate actions and run the
generator. That's basically all about this.
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|