This is a plug and play compiler which can accommodate with any language once you provide it with its lexical rules and grammar.
- Clone the repo.
git clone https://github.com/Deffo0/Compiler-Generator.git
- Change the directory to the cloned repo.
cd Compiler-Generator
- Load CMakeLists.txt to your project.
- Add the
Lexical Rules
andGrammar
paths as program arguments forDriver.cpp
. - Compile
Driver.cpp
. - Run the compiled version.
- Lexical Rules
- Grammar
- Language Code (Program)
- Stored Data in Files
- Parsing Table
- Console Output
- Symbol Table
- Parsing Tree
- Parsing Stack Trace
- Production Output
- Errors Reporting
- Implement the Syntax Directed Translation Scheme and Type checkers.
- Implement the Intermediate Code Generation Phase.