My own compiler written in Java which compiles my own language.
Run project in Linux:
Installing dependencies:
- Install ANTLR4
- Install LLVM
- Install Java
- Install Maven
Now you can start to write your program in my language to the file:
./src/main/java/com/simplerplusplus/input.txt
After compiling you will find the result in the file:
./src/main/java/com/simplerplusplus/llvm_output.ll
For running you can use my Makefile:
- make - to compile a grammar and install maven packages
- make run - to start compiling your program
- make llvm-run - to start your program in LLVM