NAME
Rinchi::DOM - DOM Interface.
SYNOPSIS
use Rinchi::DOM;
use Rinchi::Fortran::Preprocessor;
my @args = (
'test.pl',
'-I/usr/include',
'-Uccc',
);
my $closed = 0;
my $rd = new Rinchi::DOM;
my $fpp = new Rinchi::Fortran::Preprocessor;
my $document = $rd->process_to_DOM($fpp, 'test_src/bisect.f90',\@args);
DESCRIPTION
This module provides XML::DOM suuport for Rinchi preprocessors.
EXPORT
None by default.
METHODS
- new
-
Constructor for Rinchi::DOM.
- new
-
Constructor for Rinchi::DOM.
- sub process_to_DOM($processor, $path, [\@args])
-
my $document = $rdom->process_to_DOM($processor, 'some_file.fpp' ,\@args);
Where $processor is as preprocessor such as Rinchi::CPlusPlus::Proprocessor or Rinchi::Fortran::Proprocessor, $path is the path to the file to be parsed and $args is an optional reference to an array of arguments.
Parse the given file after passing the arguments if given. Print the new source to standard output.
SEE ALSO
XML::DOM Rinchi::CPlusPlus::Preprocessor Rinchi::Fortran::Preprocessor
AUTHOR
Brian M. Ames, <bames@apk.net>
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Brian M. Ames
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 196:
You forgot a '=back' before '=head1'