# Fortran interpreter and REPL in Fortran

> Source: <https://fortran-lang.discourse.group/t/fortran-interpreter-and-repl-in-fortran/11350#post_1>
> Published: 2026-12-02 14:21:33+00:00

**Key takeaway:** Claude Opus 5.5 was used to write sfort, a Fortran interpreter and REPL in Fortran that ships as an FPM package compiling with gfortran 16 in about 30 seconds.

Using Claude Opus 5.5 I have written a Fortran interpreter and REPL in Fortran that covers [some of modern Fortran](https://github.com/Beliavsky/sfort/blob/main/docs/feature-status.md). It is an FPM package that compiles with gfortran 16 in about 30s on my PC. It is analogous to the [ofort](https://github.com/beliavsky/ofort) Fortran intepreter written in C. I plan to cover more of the language and add the ability to create executables using C as an intermediate language.
