mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 23:28:15 +01:00
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.)
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%