mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
A PHP parser written in PHP
db3181aff1
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.) |
||
---|---|---|
doc | ||
grammar | ||
lib | ||
test | ||
test_old | ||
LICENSE | ||
phpunit.xml.dist | ||
README.md |
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.