coderJeff's Home Page


My FB Stuff

Extern links


LISP Evaluator for FreeBASIC

An embedded LISP interpreter written entirely in FreeBASIC for use with FreeBASIC applications.

The intent of this library is to provide an embedded LISP evaluator to a FreeBASIC program so that it could be used as a macro/script language for the application.

Requires FreeBASIC 0.20 or later to build from sources (included in the win32 package). If the static library does not work with your version of FreeBASIC, delete the lib and build from sources. Not tested, but should compile for DOS/linux also.

Download 64 K


Example source calling a "Hello World" LISP program from inside FreeBASIC.

'' --------------------------------------------------------
'' --------------------------------------------------------
'' The smallest possible example that makes use of the LISP
'' evaluator.
'' compile with: 
''    fbc hello.bas -i ../inc -p ../lib
'' --------------------------------------------------------

#include once ""

dim lsp as LISP.LispModule
lsp.eval $"(princ ""Hello World\n"")"