All Manuals > LispWorks Foreign Language Interface User Guide and Reference Manual

NextPrevTopContentsIndex

Preface

This manual documents the Foreign Language Interface (FLI), which provides a toolkit for the development of interfaces between Common Lisp and other programming languages, and supersedes the Foreign Function Interface (FFI).

The manual is divided into three sections: a user guide to the FLI which includes illustrative examples indicating how to use the FLI for a variety of purposes, a reference section providing complete details of the functions, macros, variables and types that make up the FLI, and a guide to the Foreign Parser.

The user guide section starts by describing the ideas behind the FLI, followed by a few simple examples presenting some of the more commonly used features of the FLI. The next chapter explains the existing type system, and includes examples showing how to define new types. This is followed by chapters explaining the FLI implementation of pointers and some of the more advanced topics. Finally, Self-contained examples enumerates relevant example Lisp source files which are available in the LispWorks library.

The reference section consists of a chapter documenting the functions and macros that constitute the FLI, and a chapter documenting the FLI variables and types.

The Foreign Parser section describes a helper tool for generating FLI definitions from a C header file.

Viewing example files

This manual refers to example files in the LispWorks library via a Lisp form like this:

(example-edit-file "fli/foreign-blocks")

These examples are Lisp source files in your LispWorks installation under lib/7-0-0-0/examples/. You can simply evaluate the given form to view the example source file.

 


LispWorks Foreign Language Interface User Guide and Reference Manual - 16 Feb 2015

NextPrevTopContentsIndex