? LISP Interpreter ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Another contest? You asked for it!

LISP Interpreter

Submitted
Updated
Author
excel
Public Key
Q3KEK46D
Min. Compat.
All
Version
0.4c
Size
15.3 KB
Rating
3 votes
Description A (barely functional) LISP-1 interpreter for SmileBASIC. This is the final version using D. Menezes' QBASIC LISP interpreter. Next version will be an adaption of Sussman / Steele's SCHEME interpreter adapted to the existing "big heap" pseudo-VM. Sample LISP code with some functions: XKA84J4F Version history: http://andrew.uni.cx/smilebasic.html => (DEFINE FACT (LAMBDA (N) (DEFINE REC (LAMBDA (N ACC) (IF (ZERO? N) ACC (REC (+ N -1) (* N ACC))))) (REC N 1))) '() => (FACT 5) 120 =>
Categories
Keywords
0 Comment(s)