Skip to content

a1henu/mini-lisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Lisp Interpreter

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++.

Build

cmake -B build
cmake --build build

Run

REPL mode:

cd bin
./mini-lisp

File mode:

cd bin
./mini-lisp <path-to-file>

Test

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

Appendix

For more information, please check the mid-term project document in the course website

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published