some docs

This commit is contained in:
2024-01-04 00:23:12 +01:00
parent 3bcb6686eb
commit c6813db097

28
README.md Normal file
View File

@@ -0,0 +1,28 @@
# PSIL
a simple lisp interpreter
## How to compile
Should be a regular cmake build, something like
```shell
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DSANITIZE=YES
cmake --build build --parallel $(nproc)
```
should be enough (you can also change the build type for Release and disable sanitize in case it's too slow)
## How to run tests
Unit tests (assuming build in `build`):
```shell
ctest --test-dir build --verbose --parallel $(nproc)
```
CLI tests (also assuming build in `build` and being in repo root):
```shell
PSIL="../build/src/psil" clitests/testall.sh
```