CallGraph::Lang::Fortran - Fortran 77 parser for creating call graphs
use CallGraph::Lang::Fortran; my $graph = CallGraph::Lang::Fortran->new(files => [glob('*.f')]); print $graph->dump;
This module is a subclass of CallGraph which implements parsing Fortran 77 code for building the call graph.
This module inherits all the methods from CallGraph. It defines only one additional method:
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.
The parser is simplistic, so it might not handle every edge case (such as funny use of whitespace and continuation lines) properly.
0.55
CallGraph::Node, CallGraph::Dumper, CallGraph
Ivan Tubert <itub@cpan.org>
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.
To install CallGraph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CallGraph
CPAN shell
perl -MCPAN -e shell install CallGraph
For more information on module installation, please visit the detailed CPAN module installation guide.