Static analysis tools for Fortran, written in pure Python
fsource - Fortran static analysis tool
fsource is a collection of tools allowing you to parse Fortran 77 through Fortran 2008 programs. It is written in pure Python and has no external dependencies.
You install fsource via pip:
$ pip install fsource
or simply download the source, since there are no external dependencies
(note that you should use
bin/fsource instead of
fsource in this case).
fsource currently features a command line interface:
a parser, which takes a Fortran file and outputs an abstract syntax tree (for the definitions) allowing you to extract modules, subprograms, derived types, parameters, etc.:
$ fsource parse FILE.f90
$ fsource splice FILE.f90 $ fsource lex FILE.f90
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size fsource-0.4.1-py3-none-any.whl (39.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size fsource-0.4.1.tar.gz (24.1 kB)||File type Source||Python version None||Upload date||Hashes View|