This is a simple LISP interpreter written in Python
This interpreter is a simple implementation of the LISP language. Many parts of the original language are not available in this application. This interpreter is able to handle simple arithmetic (such as addition, subtraction, multiplication, and division) Logical expressions (such as greater than, less than, greater than or equal to, less than or equal to, equal to, not equal to, and, or, and not), and a few simple functions (if conditionals, car, cdr, cons, sqrt, pow, !set, and define).
Arithmetic:
- addition, +
- subtraction, -
- multiplication, *
- division, /
Logic:
- greater than, >
- less than, <
- equal to, =
- not equal to, !=
- AND
- OR
- NOT
functions:
- if conditional
- car
- cdr
- cons
- sqrt
- pow
- defun
- !set
- define
Functionality:
Variable definition is ready.
Variable referencing within more complex expressions is ready
TODO::
Rectreate the project:
- re-write expression parser
- restructure how expression evaluation is cunducted (separate function calls from definitions)
- integrate function definitions within the interpreter