This is the final project for the course "Practice of Software Design" at Peking University. The project is to implement a simple Lisp interpreter in C++.
cmake -B build
cmake --build build
REPL mode:
cd bin
./mini-lisp
File mode:
cd bin
./mini-lisp <path-to-file>
Our TAs provide a test framework for us to test our interpreter. You can find the test framework in src/rjsj_test.hpp
.
If you want to run the test, please check line 8-9 in CMakeLists.txt
, and uncomment the line 9 to enable the test mode.
add_compile_definitions(__TEST)
Then you can build and run the test by:
cmake -B build
cmake --build build
cd bin
./mini-lisp
For more information, please check the mid-term project document in the course website