Skip to main content

Static analysis tools for Fortran, written in pure Python

Project description

fsource - Fortran static analysis tool

build status

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
    
  • a line splicer and a lexer, low-level tools which split a Fortran file into a set of logical lines and tokens, respectively. This allows you to set up your parsing infrastructure on top of fsource:

    $ fsource splice FILE.f90
    $ fsource lex FILE.f90
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fsource-0.4.tar.gz (23.7 kB view details)

Uploaded Source

File details

Details for the file fsource-0.4.tar.gz.

File metadata

  • Download URL: fsource-0.4.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for fsource-0.4.tar.gz
Algorithm Hash digest
SHA256 e0fdd15aba6c3b8f0a75e23e99c4db35dc78e30c68d2e1470fe8235a005549d6
MD5 a030909a34e76c4a6c65a6134773ac94
BLAKE2b-256 3265ec47b0adecfab9808929aa791abbe56583da1169e3d1c92962b140e32148

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page