Skip to content

adeecc/crusty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The CRust Compiler

CRust is the Lovechild of Rust and C++, built for the modern times.

Team (Group 9)

Name ID Number
Aditya Chopra 2019A7PS0178H
Omkar Pitale 2019A7PS0083H
Vedansh Srivastava 2019A7PS0323H

Instructions

Run the Demonstrations

bash run.sh

Run the Tests

bash test.sh

Custom Build Instructions

  1. 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"
  1. Build all targets

Building in Release Mode.

cmake --build ./build --config Relase --target all

Building in Debug Mode

cmake --build ./build --config Debug --target all -j 10 --

You need to compile atleast the crusty_compiler static library, and app 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.

  1. Running the Demo Parser

Assuming the Current Working Directory is ./bin

chmod +x ./app
./app
  1. Running the Tests

Assuming the Current Working Directory is ./bin/tests

chmod +x ./lexer_tests
./lexer_tests

About

A C++/Rust inspired programming language for the ages

Resources

Stars

Watchers

Forks