fparser.one.parsefortran

Provides FortranParser.

Module Contents

Classes

FortranParser

Parser of FortranReader structure.

class fparser.one.parsefortran.FortranParser(reader, ignore_comments=True)[source]

Parser of FortranReader structure.

Use .parse() method for parsing, parsing result is saved in .block attribute.

cache[source]
get_item()[source]

Retrieves the next item from the reader.

put_item(item)[source]

Pushes the given item to the reader.

parse()[source]

Parses the program specified in the reader object.

analyze()[source]

Attempts to analyse the parsed Fortran. It is not clear what for.