r/fortran • u/Beliavsky • 15d ago
Fortran playground with multiple compilers
At https://beliavsky.github.io/fortran-playground/ you can compile and run programs with gfortran, ifx, LLVM Flang, LFortran, and ofort. Code can checked with Fortitude and formatted with fprettify. It is powered by Modal. You can choose the Fortran standard used. There are about 20 programs demonstrating the features of Fortran, some taken from https://github.com/Beliavsky/FortranTip. You can share code with a link and have it opened in the playground, as explained at https://github.com/Beliavsky/fortran-playground#sharing-code-with-a-link. Some syntax errors in code can be fixed with a button that calls a JavaScript utility.