mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 23:28:15 +01:00
nikic
b49c55c9e5
Cover NodeTraverser and bugs it found
a) ->traverseNode() now operates on a clone of the node, otherwise the original node will be modified too b) before nodes were passed to the following visitor unchanged, even though they were already changed in the tree
PHP Parser
This is a PHP 5.4 (and older) parser written in PHP. It's purpose is to simplify static code analysis and manipulation.
Documentation can be found in the doc/
directory.
Note: This project is experimental. There are no known bugs in the parser itself, but the API is subject to change.
Description
Languages
PHP
95.3%
Yacc
4.7%