Personal web page: Emmanuel Branlard

Simple Fortran parser written in Python

Simple-fortran-parser is a tool for parsing a fortran file.

The parser can be used to:
  • rewrite a file (in a standardized way)
  • write header files for bind(C) routines (for dlls and shared objects)
  • write def files for bind(C) routines (for windows dll)
  • Automatically write some tools for derived types (read/write)
Look (and make) in the test directory to see what the script can do.

The source code and some examples can be found on the GitHub repository.