Version 4 (modified by rtoy, 7 years ago) (diff)


Welcome to F2CL

F2CL is a Fortran to Common Lisp converter that can convert Fortran 77 (with some extensions) to Common Lisp.

Getting F2CL

The easiest way to get F2CL is to clone the hg (Mercurial) repository:

hg clone

For developers with ssh access, you can use

hg clone ssh://

Substitute your user name for "user", of course. Also, note the two slashes before project. These are important.

Quick Start to Using F2CL

First, you need to load f2cl. This can be done simply with

(asdf:oos 'asdf:load-op :f2cl)

assuming that asdf can find f2cl.asd.

Once F2CL is loaded, you can convert a Fortran file to Lisp using

(f2cl:f2cl "src.f")

This will convert the Fortran code in src.f and place the translation in src.lisp.

Or you can convert and compile the result using

(f2cl:f2cl-compile "src.f")

This does the conversion and then calls COMPILE-FILE to compile the resulting Lisp code.


F2CL comes with many examples of converting Fortran code to Lisp. Look in the packages directory for the examples. These packages are not officially a part of F2CL. They are packages used to test F2CL. However, the packages are useful in themselves.

Starting Points

For a complete list of local wiki pages, see TitleIndex.