You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure vcpkg, CMake, and a C++ compiler are installed on your computer
Clone this directory with git clone
Configure the build using cmake --preset=debug (Note this can take a long time the first time it is run)
Build with cmake --build out/Debug
Running Compile Collective
Navigate to the out/Debug/src folder.
create an example math expression in a file like math.coco:
3 + 5 * (4 - 2) / 2
Run ./SeniorProject math.coco output.o to generate an object file from the output. Printed to the screen, you'll see a Postfix version of the expression, along with the LLVM IR
Use a C compiler to link the output. (Ex. clang++ -o main output.o)
Running this executable, you'll see the answer to the math equation