Makefile::DOM - Simple DOM parser for Makefiles http://www.cpan.org
Go to file
2024-01-06 09:18:47 +01:00
perl-Makefile-DOM.spec automatic version update by autodist [release 0.005-1mamba;Thu Aug 18 2011] 2024-01-06 09:18:47 +01:00
README.md automatic version update by autodist [release 0.005-1mamba;Thu Aug 18 2011] 2024-01-06 09:18:47 +01:00

perl-Makefile-DOM

This libary can serve as an advanced lexer for (GNU) makefiles. It parses makefiles as "documents" and the parsing is lossless. The results are data structures similar to DOM trees. The DOM trees hold every single bit of the information in the original input files, including white spaces, blank lines and makefile comments. That means 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, just like the PPI module used for Perl source parsing and the HTML::TreeBuilder module used for parsing HTML source.