loki.frontend.ofp

Module Attributes

HAVE_OFP

Indicate whether OpenFortranParser frontend is available.

Functions

match_tag_sequence(sequence, patterns)

Return a list of tuples with all AST nodes (xml objects) that match a tag pattern in the list of :param patterns:.

parse_ofp_ast(ast[, pp_info, raw_source, ...])

Generate an internal IR from the raw OFP parser AST.

parse_ofp_file(filename)

Read and parse a source file using the Open Fortran Parser (OFP).

parse_ofp_source(source[, filepath])

Read and parse a source string using the Open Fortran Parser (OFP).

Classes

OFP2IR(raw_source[, definitions, pp_info, scope])

HAVE_OFP = False

Indicate whether OpenFortranParser frontend is available.

parse_ofp_file(filename)

Read and parse a source file using the Open Fortran Parser (OFP).

Note: The parsing is cached on disk in <filename>.cache.

parse_ofp_source(source, filepath=None)

Read and parse a source string using the Open Fortran Parser (OFP).

parse_ofp_ast(ast, pp_info=None, raw_source=None, definitions=None, scope=None)

Generate an internal IR from the raw OFP parser AST.