coderJeff's Home Page

Main

My FB Stuff

Extern links

Information

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

lisp-2008.12.23-win32.zip 64 K

Sample:

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

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

#include once "lisp.bi"

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