A PHP parser written in PHP
Go to file
nikic db3181aff1 More test coverage and doc string parsing fixes
The parser didn't account for the additional newline after the content of doc strings, which is left there by the tokenizer for some reason. Additoinally esacape sequences were parsed in nowdoc strings.

Additionally this contains some minor changes to the grammar: Some _list nonterminals were refactored to have the possible single elements in a reparate rule and only assemble those single elements. (This reduces duplication and gives better assignment of line number context.)
2011-12-04 16:52:43 +01:00
doc Add XML syntax highlighting in docs 2011-11-12 19:30:52 +01:00
grammar More test coverage and doc string parsing fixes 2011-12-04 16:52:43 +01:00
lib More test coverage and doc string parsing fixes 2011-12-04 16:52:43 +01:00
test More test coverage and doc string parsing fixes 2011-12-04 16:52:43 +01:00
test_old Improve test run.php 2011-10-30 12:16:31 +01:00
LICENSE fix typos 2011-06-26 18:45:19 +02:00
phpunit.xml.dist Rename tests from Unit_ to PHPParser_Tests_ 2011-08-10 11:13:37 +02:00
README.md More docs 2011-11-12 19:28:53 +01:00

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.