Lisp Interpreter with LLVM JIT Compiler
This project implements a toy Lisp interpreter with LLVM JIT compilation capabilities.
Building the Project
Prerequisites
- CMake (version 3.10 or higher)
- C++ compiler with C++17 support
- LLVM (development packages)
Build Instructions
-
Clone the repository:
git clone https://github.com/jensb1/lisp_llvm.git cd lisp_llvm -
Create a build directory and navigate to it:
-
Configure the project with CMake:
-
Build the project:
-
Run the interpreter or tests:
./LispInterpreter # Run the REPL ./LispTest # Run the test suite
CMake Configuration
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
Usage
Once built, you can run the REPL and enter Lisp expressions: