fc_scan¶
- class waflib.Tools.fc_scan.fortran_parser(incpaths)[source]¶
This parser returns:
the nodes corresponding to the module names to produce
the nodes corresponding to the include files used
the module names used by the fortran files
- seen¶
Files already parsed
- nodes¶
List of
waflib.Node.Node
representing the dependencies to return
- names¶
List of module names to return
- incpaths¶
List of
waflib.Node.Node
representing the include paths
- __dict__ = mappingproxy({'__module__': 'waflib.Tools.fc_scan', '__firstlineno__': 18, '__doc__': '\nThis parser returns:\n\n* the nodes corresponding to the module names to produce\n* the nodes corresponding to the include files used\n* the module names used by the fortran files\n', '__init__': <function fortran_parser.__init__>, 'find_deps': <function fortran_parser.find_deps>, 'start': <function fortran_parser.start>, 'iter': <function fortran_parser.iter>, 'tryfind_header': <function fortran_parser.tryfind_header>, '__static_attributes__': ('incpaths', 'names', 'nodes', 'seen', 'waiting'), '__dict__': <attribute '__dict__' of 'fortran_parser' objects>, '__weakref__': <attribute '__weakref__' of 'fortran_parser' objects>, '__annotations__': {}})¶
- __firstlineno__ = 18¶
- __static_attributes__ = ('incpaths', 'names', 'nodes', 'seen', 'waiting')¶
- find_deps(node)[source]¶
Parses a Fortran file to obtain the dependencies used/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 parsing. Use the stack
self.waiting
to hold nodes to iterate on- Parameters:
node (
waflib.Node.Node
) – fortran file