Path: Compilers : Lisp interpreter :
Path: LISP :

LISP interpreter...

LISP (List Processing Language) interpreter written in standard STL style C++ and E-BNF.

  lisp32-1.0.zip - the simple lisp intereter written in C++ compiled for win32.
  lisp64-1.0.zip - the simple lisp intereter written in C++ compiled for win64.
  lisp.exe - the simple lisp intereter written in C++ compiled for win64.


LISP Functions:

eval - a function that evaluates a text string containing LISP code
list - create a list from number of arguments
cons - join two lists
cond - conditional statement that controls code execution
append - add a list item to the end of another list
car - return the head of the list
cdr - return list without the head of the list
defun - define LISP function
setq - set a variable value
atom - return true if the one argument is not a list
quote - make variable names string values and not variables
input - input a list
print - print a variable
readfile - read a list from a file
writefile - write a list to a file
not - logical not
and - logical and
or - logical or
add | + - add
sub | - - subtract
mul | * - multiply
div | / - divide
mod | % - modulous
eq | = - equal
neq | <> - not equal
lt | < - less then
lteq | <= - less then or equal to
gt | > - grater then
gteq | >= - grater then or equal to
make-map - create a new map
make-list - create a new list
the-list - the-list is a global variable with the current program lexical tokens
t - remove the top of the stack and disregard the information


Example programs:

  ai.lis
  car.lis
  chello.lis
  code.lis
  compute.lis
  cond.lis
  curses.lis
  defcode.lis
  eval.lis
  file.lis
  file_io.lis
  find.lis
  fun.lis
  hello.lis
  hello2.lis
  hello_fun.lis
  include.lis
  l.lis
  libc.lis
  load.lis
  loop.lis
  malloc.lis
  map.lis
  math.lis
  nth.lis
  ret.lis
  say_hello.lis
  setit.lis
  shell.lis
  str.lis
  system.lis
  the-list.lis
  varfun.lis