Skip to content
forked from rbohrer/fif

FORTRAN in Fortran (FORTRAN I transcompiler in Fortran 2008)

License

Notifications You must be signed in to change notification settings

interkosmos/fif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

 
 
 

Languages

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