Ivan Tubert-Brohman > CallGraph > CallGraph::Lang::Fortran

Download:
CallGraph-0.55.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  0
View Bugs
Report a bug
Module Version: 0.55   Source  

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 CallGraph which implements parsing Fortran 77 code for building the call graph.

METHODS ^

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 ^

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 ^

CallGraph::Node, CallGraph::Dumper, CallGraph

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.