开发者

PHP parsing technique

开发者 https://www.devze.com 2023-03-18 05:38 出处:网络
Can any one give me some idea about how d开发者_C百科oes a php file get parsed? I\'m actually looking for the finite state machine structure for the parser. If anyone has any idea please share.PHP use

Can any one give me some idea about how d开发者_C百科oes a php file get parsed? I'm actually looking for the finite state machine structure for the parser. If anyone has any idea please share.


PHP uses bison/yacc to generate a parser. Have a look at the grammar here: http://svn.php.net/viewvc/php/php-src/trunk/Zend/zend_language_parser.y?view=markup


You better use an existing one:

Any decent PHP parser written in PHP?

0

精彩评论

暂无评论...
验证码 换一张
取 消