fc_scan

class waflib.Tools.fc_scan.fortran_parser(incpaths)[source]

Bases: object

This parser will return:

  • the nodes corresponding to the module names that will be produced
  • the nodes corresponding to the include files used
  • the module names used by the fortran file
seen = None

Files already parsed

nodes = None

List of waflib.Node.Node representing the dependencies to return

names = None

List of module names to return

incpaths = None

List of waflib.Node.Node representing the include paths

__doc__ = '\n\tThis parser will return:\n\n\t* the nodes corresponding to the module names that will be produced\n\t* the nodes corresponding to the include files used\n\t* the module names used by the fortran file\n\t'
__module__ = 'waflib.Tools.fc_scan'
find_deps(node)[source]

Parse a fortran file to read the dependencies used and provided

Parameters:node (waflib.Node.Node) – fortran file to read
Returns:lists representing the includes, the modules used, and the modules created by a fortran file
Return type:tuple of list of strings
start(node)[source]

Start the parsing. Use the stack self.waiting to hold the nodes to iterate on

Parameters:node (waflib.Node.Node) – fortran file
iter(node)[source]

Process a single file in the search for dependencies, extract the files used the modules used, and the modules provided.

tryfind_header(filename)[source]

Try to find an include and add it the nodes to process

Parameters:filename (string) – file name