CallGraph::Lang::Fortran - Fortran 77 parser for creating call graphs


NAME

CallGraph::Lang::Fortran - Fortran 77 parser for creating call graphs


SYNOPSIS

    use CallGraph::Lang::Fortran;
    my $graph = CallGraph::Lang::Fortran->new(files => [glob('*.f')]);
    print $graph->dump;


DESCRIPTION

This module is a subclass of the CallGraph manpage which implements parsing Fortran 77 code for building the call graph.


METHODS

This module inherits all the methods from the CallGraph manpage. It defines only one additional method:

$graph->parse($fh)
Parse the program using the given filehandle $fh. Note that you don't really have to call this method directly, because it's called automatically whenever you specify a file via the add_files or add_lines method, or via the files or lines options to the constructor.

This is the one function you have to override if you want to implement your own subclass of the CallGraph manpage for parsing another language.


BUGS

The parser is simplistic, so it might not handle every edge case (such as funny use of whitespace and continuation lines) properly.


VERSION

0.55


SEE ALSO

the CallGraph::Node manpage, the CallGraph::Dumper manpage, the CallGraph manpage


AUTHOR

Ivan Tubert <itub@cpan.org>


COPYRIGHT

Copyright (c) 2004 Ivan Tubert. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

 CallGraph::Lang::Fortran - Fortran 77 parser for creating call graphs