Skip to main content

A simple REPL Fortran utility

Project description

Simple Fortran interface
========================

Beginner Fortran developers are often puzzled with
correctness of FORTRAN statements syntax.
These last just never stop surprising.

Writing little simple programs often can be helful but tedious.
This script simplifies this process.
It maintains a list of FORTRAN statements, and:
* generates FORTRAN source file from a template
* compiles the file
* runs the file and display its output
* uses readline library to provide history of input


Example
-------

$ python -m fytran
!! - compile and execute expressions
!l - print expressions
!d - delete an expressions
!c - clear the list of expressions
!u - remove last stmt
!q - quit
>>> print *, 'hello' world
>>> !!
fytran.f:4.22:
print *, 'hello' world
1
Error: Syntax error in PRINT statement at (1)
>>> !u
>>> print *, 'hello'
>>> !!
hello
>>> !q
$


Remarks
-------
The FORTRAN template uses:

implicit real*8 (a-h, o-z)

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

fytran-0.2.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file fytran-0.2.1.tar.gz.

File metadata

  • Download URL: fytran-0.2.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fytran-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1ebbe343898e2b2f968ca2d41a53448afdba323a14d79dd89307d58b3fa79053
MD5 84a0ae9a1b6e382ac431741ff91a5c78
BLAKE2b-256 42ef2c9a56b196b52ba0e3dc147c67000df200f17f771b2b9f38e9434dcc0cf1

See more details on using hashes here.

Supported by

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