You are here: Re: PHP parsing script « PHP Programming Language « IT news, forums, messages
Re: PHP parsing script

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]


Удаленная работа для программистов  •  Как заработать на 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

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