libmakefile-dom-perl | Perl DOM implementation for Makefiles | Mehr ... |
Makefile::DOM serves as an advanced lexer for (GNU) makefiles. It losslessly parses makefiles as "documents". The results are data structures similar to DOM trees, holding every single bit of the information in the original input files, including white spaces, blank lines and makefile comments, so it's possible to reproduce the original makefiles from the DOM trees. In addition, each node of the DOM trees is modifiable and so is the whole tree. |