Lisp interpreter in C++
This is the PRO2 subject course project which consists in developing an interpreter in C++ language for basic arithmetic and boolean operations written in Lisp form. The program also allows to define new operations, variables and arrays. The whole project is documented using Doxygen.
g++ compiler
build-essential
The project comes with a makefile. In order to compile and run the program, do the following steps:
Clone or unpack the project
$ make program.exe
$ ./program.exe
$ ./program.exe < TEST_Input.txt
The Testing file has invalid operations on purpose.
You should expect the following outputs:
Invalid operations will be resolved as "indefinit".
Operations with negative result are also indefinit.
Arithmetic and boolean operations will produce a single output containing the result of the operation.
Array definitions will produce a single output printing the array.
Definitions will produce a single output with the definition identifier (#).
Variable definitions will produce a single output with the variable name and the variable value.
At the end of the output you can find all the variables with its final values and all the operation definitions with its identifiers.