Skip to content

achm25/Designing-Decaf-Compiler

Repository files navigation

Decaf compiler:

Compiler course final project implemented with the Python programming language.
Made for compiling decaf programming language, a language with syntaxes similar to Javascript.
This project was done in three phases:

  1. Scanner
  2. Parser
  3. Code generator (generates pseudo-assembly code) Optimazitaion
  4. Optimization
com

The grammar of this language can be accessed in the grammar directory.
The compiler is made from scratch and no predefined libraries are used.
The compiler can also be run from the command-line interpreter(cmd) using colang.bat batch file if given the code path.

Instructions to Run:

To execute the Decaf compiler components, follow these steps:

  1. Ensure Python 3 is installed on your system.
  2. Clone this repository to your local machine.
  3. Open a terminal and navigate to the repository directory.
  4. Run the components using Python 3 by executing the respective file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages