Skip to content

Deffo0/Compiler-Generator

 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.3%
  • Python 6.5%
  • CMake 1.1%
  • C 0.9%
  • Starlark 0.8%
  • Shell 0.2%
  • Other 0.2%