PHP Parser 0.9.2

PHP Parser is a PHP source code parsers, written in PHP itself and was written for the purpose of code analysis.
It simply reads the code and shows it as an array of the syntax tree. By manipulating the array we can also manipulate the code. For beginners, documentation is provided with the project.

Requirements:
- PHP 5.4 or Higher

What's New in This Version:
- Added Class->getMethods() function, which returns all methods contained in the stmts array of the class node. This does not take inherited methods into account.
- Added isPublic(), isProtected(), isPrivate(). isAbstract(), isFinal() and isStatic() accessors to the ClassMethod, Property and Class nodes. (Property and Class obviously only have the accessors relevant to them.)
- Fixed parsing of new expressions in parentheses, e.g. return(new Foo);.
- Added mechanism for adding attributes to nodes in the lexer.
- Fixed NameResolver visitor to also resolve class names in catch blocks.

Limitations:
- Still in development. Might change drastically from one version to the other.

License type: BSD
Date added: 10 months ago | Last updated: 9 months 26 days ago

More popular XML

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

nikic-PHP-Parser-90b5acd
  • phpunit.xml.dist
  • 692 Bytes
  • 07/07/2012 13:23:24
test
code
parser
expr
  • ternary.test
  • 1.3 KB
  • 07/07/2012 13:23:24
  • print.test
  • 126 Bytes
  • 07/07/2012 13:23:24
  • issetAndEmpty.test
  • 555 Bytes
  • 07/07/2012 13:23:24
  • arrayDef.test
  • 3.0 KB
  • 07/07/2012 13:23:24
  • exit.test
  • 432 Bytes
  • 07/07/2012 13:23:24
  • variable.test
  • 877 Bytes
  • 07/07/2012 13:23:24
  • comparison.test
  • 1.6 KB
  • 07/07/2012 13:23:24
  • clone.test
  • 127 Bytes
  • 07/07/2012 13:23:24
fetchAndCall
  • args.test
  • 1.2 KB
  • 07/07/2012 13:23:24
  • objectAccess.test
  • 2.1 KB
  • 07/07/2012 13:23:24
  • newDeref.test
  • 1.3 KB
  • 07/07/2012 13:23:24
  • funcCall.test
  • 2.1 KB
  • 07/07/2012 13:23:24
  • simpleArrayAccess.test
  • 1.1 KB
  • 07/07/2012 13:23:24
Hot Scripts
Sponsors