Skip to content

interkosmos/fif

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 20 commits ahead of rbohrer:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

fif

FORTRAN in Fortran: A FORTRAN I transpiler, written in Fortran 2008. Translates FORTRAN I code to ANSI C. Please see the lecture on nostalgic programming in Fortran for further information. The details of the language are specified in the Programmer’s Reference Manual from 1956.

Build Instructions

Use the provided Makefile to build the transpiler:

$ make

Or, run GNU Fortran directly:

$ gfortran -o compiler compiler.f90

Compilation

Compile your FORTRAN I code with:

$ ./compiler <input> <output>

For instance:

$ ./compiler average.f average
$ ./average
3
10.0 12.2 17.8
 10.000
 12.200
 17.800
AVERAGE:  13.333

Copyright

Copyright © 2018, Brandon Bohrer. Licenced under MIT.

About

FORTRAN in Fortran (FORTRAN I transcompiler in Fortran 2008)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 92.1%
  • C 5.2%
  • Forth 1.3%
  • Other 1.4%