- Addition, Subtraction, Multiplication, Division
- Parenthetical Expressions
- Some Front End, Back End
- Functions
- Statements
- Classes
- etc..
- 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
- 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
# ./main
8