| | 19 | |
| | 20 | == Quick Start to Using F2CL == |
| | 21 | |
| | 22 | First, you need to load f2cl. This can be done simply with |
| | 23 | |
| | 24 | {{{(asdf:oos 'asdf:load-op :f2cl)}}} |
| | 25 | |
| | 26 | assuming that {{{asdf}}} can find {{{f2cl.asd}}}. |
| | 27 | |
| | 28 | Once F2CL is loaded, you can convert a Fortran file to Lisp using |
| | 29 | |
| | 30 | {{{(f2cl:f2cl "src.f")}}} |
| | 31 | |
| | 32 | This will convert the Fortran code in {{{src.f}}} and place the |
| | 33 | translation in {{{src.lisp}}}. |
| | 34 | |
| | 35 | Or you can convert and compile the result using |
| | 36 | |
| | 37 | {{{(f2cl:f2cl-compile "src.f")}}} |
| | 38 | |
| | 39 | This does the conversion and then calls {{{COMPILE-FILE}}} to compile |
| | 40 | the resulting Lisp code. |
| | 41 | |
| | 42 | == Examples == |
| | 43 | |
| | 44 | F2CL comes with many examples of converting Fortran code to Lisp. |
| | 45 | Look in the {{{packages}}} directory for the examples. These packages |
| | 46 | are not officially a part of F2CL. They are packages used to test |
| | 47 | F2CL. However, the packages are useful in themselves. |