A simple toy language
Explore the docs »
·
Report Bug
·
Request Feature
This project contains an LLVM Frontend for MiniC, a toy language similar to the C Programming language.
To get a local copy up and running follow these simple steps.
Follow the guide at https://github.com/antlr/antlr4/blob/master/doc/getting-started.md
Follow the guide at https://github.com/antlr/antlr4/tree/master/runtime/Cpp
Get the source code and build LLVM by following the guide at https://llvm.org/docs/GettingStarted.html#getting-the-source-code-and-building-llvm
- Clone the repo
git clone https://github.com/ajainuary/minic-compiler.git
- Move to the source code directory
cd src/
- Compile the project
make
In order to compile your miniC code simply run the executable with the source code file as the argument.
./minic <source-code>
A few sample programs to test could be found here
Distributed under the MIT License. See LICENSE
for more information.
This project was built as a part of the Compilers Course at IIIT, Hyderabad. I am grateful to Prof. Suresh Purini and the TAs for guiding me through the project.