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


CallGraph documentation  | view source Contained in the CallGraph distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

METHODS

Top

This module inherits all the methods from CallGraph. 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 CallGraph for parsing another language.

BUGS

Top

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

VERSION

Top

0.55

SEE ALSO

Top

CallGraph::Node, CallGraph::Dumper, CallGraph

AUTHOR

Top

Ivan Tubert <itub@cpan.org>

COPYRIGHT

Top


CallGraph documentation  | view source Contained in the CallGraph distribution.