Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Abstract Syntax Tree parser for PHP
C++ PHP Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
parser comply with modification clause in the Apache license
.gitignore initial code (fork)
LICENSE add LICENSE
README initial code (fork)
XHPASTNode.php use local NODES instead of the node_constants helper
XHPASTNodeList.php comply with modification clause in the Apache license
XHPASTSyntaxErrorException.php comply with modification clause in the Apache license
XHPASTToken.php comply with modification clause in the Apache license
XHPASTTree.php comply with modification clause in the Apache license
bootstrap.php bootstrap helper (loader)
example.php use bootstrap for example (and shebang)
utils.php
xhpast_parse.php comply with modification clause in the Apache license

README

XHPAST

An abstract syntax tree parser for PHP.

Developed by/at Facebook and packaged as part of libphutil:
  https://github.com/facebook/libphutil

Some API documentation (maintained by Facebook) can be found here:
  http://www.phabricator.com/docs/libphutil/#xhpast

To use, you'll need to build the xhpast binary:
  $ cd parser && make install

Then the following to see a text rendering of the AST of the example script:
  $ php example.php example.php


Something went wrong with that request. Please try again.