|Version 4 (modified by rtoy, 2 years ago)|
Welcome to F2CL
F2CL is a Fortran to Common Lisp converter that can convert Fortran 77 (with some extensions) to Common Lisp.
The easiest way to get F2CL is to clone the hg (Mercurial) repository:
hg clone http://common-lisp.net/project/f2cl/hg/f2cl
For developers with ssh access, you can use
hg clone ssh://firstname.lastname@example.org//project/f2cl/public_html/hg/f2cl
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
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
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.
- TracGuide -- Built-in Documentation
- The Trac project -- Trac Open Source Project
- Trac FAQ -- Frequently Asked Questions
- TracSupport -- Trac Support
For a complete list of local wiki pages, see TitleIndex.