(todo: add logo)
This is the official Jadavpur University Compiler Compiler repository.
- Nothing yet
The JuCC project is built and tested on Ubuntu 20.04.
$ git clone https://github.com/TheSYNcoder/JuCC
$ cd JuCC
$ sudo ./script/installation/packages.sh
$ mkdir build
$ cd build
$ cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
$ ninja jucc
$ ./bin/jucc
To run the unit tests provided,
$ mkdir build
$ cd build
$ cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
$ ninja
$ ./bin/jucc_test
Before pushing or making a pull request ( The tests must pass, compulsory !! )
$ ninja
$ ninja check-format
$ ninja check-clang-tidy
$ ninja check-lint
$ ninja test
To add a new unit test, make a folder with the same relative path as in the src folder, and define your test. Please refer to docs for more details about writing tests using the googletest framework.
Additional Notes:
- If you know what you're doing, install the prerequisite packages from
./script/installation/packages.shmanually.
Please see the docs.
Contributions from everyone are welcome!