Skip to content
master
Go to file
Code
This branch is 20 commits ahead of bbohrer:master.

Latest commit

 

Git stats

Files

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

README.md

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

Releases

No releases published

Packages

No packages published