CRust is the Lovechild of Rust and C++, built for the modern times.
Name | ID Number |
---|---|
Aditya Chopra | 2019A7PS0178H |
Omkar Pitale | 2019A7PS0083H |
Vedansh Srivastava | 2019A7PS0323H |
bash run.sh
bash test.sh
- Generate Build Files
cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -H. -B./build -G "Unix Makefiles"
- Build all targets
cmake --build ./build --config Relase --target all
cmake --build ./build --config Debug --target all -j 10 --
You need to compile atleast the
crusty_compiler
static library, andapp
to run the demo executable Easist way to get tests to work is to build all targets. We use gtest for testing, which has several targets that are required and it can get messy installing them.
- Running the Demo Parser
Assuming the Current Working Directory is
./bin
chmod +x ./app
./app
- Running the Tests
Assuming the Current Working Directory is
./bin/tests
chmod +x ./lexer_tests
./lexer_tests