Incomplete Fortran to C/C++ converter

This script transforms old Fortran 77 code to C/C++. Put your Fortran 77 code in the text field below and press the convert button. The program does not convert to full compatible C code. You won't be able to compile the generated code.
Why do you need such a converter?
Two more or less complete converters, f2c and fable have been published so far. Both tools try to transform your old code to match full compatibility with the fortran rules but neglecting readability. This is the point were this script could help you. The script contain some more intelligent substitution algorithms that will help you to transform your source code manually by doing all the nasty stuff.
  • Insert Indention
  • Remove of first column
  • Convert Comments
  • Convert Gotos
  • Remove blanks
  • Move Format lines to read and write functions
  • Convert if and do
  • Remove unnecessary gotos
  • Add Semicolons at end of line
  • Convert array brackets
  • Convert 'DO' loops to the corresponding 'for' loop
  • Transform common blocks to global structs
  • Parse Parameters and convert
  • Substitute obvious tokens
The program does not convert the array indexing scheme of Fortran!.

Put you Fortran 77 code here:

Output: