Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.54 KB

README.md

File metadata and controls

51 lines (44 loc) · 1.54 KB

Compiler Generator

Overview

This is a plug and play compiler which can accommodate with any language once you provide it with its lexical rules and grammar.

Authors

Setup

  1. Clone the repo.
git clone https://github.com/Deffo0/Compiler-Generator.git
  1. Change the directory to the cloned repo.
cd Compiler-Generator
  1. Load CMakeLists.txt to your project.
  2. Add the Lexical Rules and Grammar paths as program arguments for Driver.cpp.
  3. Compile Driver.cpp.
  4. Run the compiled version.

System Flow Chart

Logo

Documentation

Inputs

  • Lexical Rules
  • Grammar
  • Language Code (Program)

Outputs

  • Stored Data in Files
    • Parsing Table
  • Console Output
    • Symbol Table
    • Parsing Tree
    • Parsing Stack Trace
    • Production Output
    • Errors Reporting

What Next 🤔

  • Implement the Syntax Directed Translation Scheme and Type checkers.
  • Implement the Intermediate Code Generation Phase.