This project implements a toy Lisp interpreter with LLVM JIT compilation capabilities.
- CMake (version 3.10 or higher)
- C++ compiler with C++17 support
- LLVM (development packages)
-
Clone the repository:
git clone https://github.com/jensb1/lisp_llvm.git cd lisp_llvm
-
Create a build directory and navigate to it:
mkdir build cd build
-
Configure the project with CMake:
cmake ..
-
Build the project:
make
-
Run the interpreter or tests:
./LispInterpreter # Run the REPL ./LispTest # Run the test suite
The project uses CMake for build configuration. The main CMakeLists.txt file:
- Sets C++17 as the required standard
- Finds and configures LLVM dependencies
- Builds two executables:
LispInterpreter
: The main REPL for interactive useLispTest
: Test suite for verifying functionality
Once built, you can run the REPL and enter Lisp expressions: