This library module provides a recursive descent grammar parser to help analyze and modify a source code file. The goal is that, by organizing the source code based on the grammar of the programming language (as opposed to low-level tokens), complex changes to the code can be more readily made in a programmatic fashion (i.e. by other code using the parser engine).
This library handles PHP grammar, building on the tokenizer functions available in PHP.
Some of the applications for this library module are:
writing upgrade routines for the Coder Upgrade (formerly Deadwood) module
parsing source code for the API module used with the Drupal API site