Skip to main content

Static analysis tools for Fortran, written in pure Python

Project description

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 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.2.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

fsource-0.2-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fsource-0.2.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for fsource-0.2.tar.gz
Algorithm Hash digest
SHA256 a5b0f947bcab6c8e018cb2b0377abedfa864580f6d30531e2c3cc1c07b1358b4
MD5 e6f3d8df91029c929ad07fbc0ebbda6b
BLAKE2b-256 9f2712d889823c6fcc8826167af12721221ba78dfde96a26173d468d7b9df923

See more details on using hashes here.

File details

Details for the file fsource-0.2-py3-none-any.whl.

File metadata

  • Download URL: fsource-0.2-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for fsource-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93aa1bb4d994cb52ee932441c04e8777d5ba10cb5e352395b4871c4740e4b600
MD5 4ed327aafb22d9c0262f583c7181b4d8
BLAKE2b-256 e40c431918364cdf35d2f87162cbf72015e83738423e4bf71a29fbd0dcb0de2b

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