Skip to content

Aissam-gif/Java-Assembly-Code-Generator-from-Syntax-Tree

Repository files navigation

Java Assembly Code Generator from Syntax Tree

Screenshot of The Application

This project is a Java-based application that allows users to generate assembly code from a syntax tree. The goal of this project is to simplify the process of generating assembly code, making it easier for developers to create executable code more efficiently.

Features

  • Users can input their own custom syntax trees.
  • The program automatically generates corresponding assembly code.

This project was developed as a practical application for the Theory of Compilation course.

Installation

  1. Clone the repository to your local machine.
  2. Ensure that you have the latest version of Java installed on your machine.
  3. Open the project in an Integrated Development Environment (IDE) of your choice, such as Eclipse or IntelliJ IDEA.
  4. Build and run the project.

Usage

  1. Open the application.
  • Choose either Aff (Initializing) or Alt (Alternative) from the right menu.
  • Then Add the node using the button "Add"
  1. Click The "Add" Item in the left list
  • Add The right Part of the expression (Like thiss Aff -> Exp = Exp)
  • Then Click Exp and expand the tree
  1. When finishing the tree insertion
  • Click on the Identifiers or Sign Op in order to put values
  • SignOp can take as values (+, -, /, *) and identifiers take string.

The program will generate the corresponding assembly code automatically. The generated code will be evaluated to ensure it performs as expected. Contributing Contributions are welcome to this project. If you would like to contribute, please follow these steps:

Fork the project. Create a new branch for your changes. Make your changes and commit them. Push your changes to your fork. Submit a pull request.

License This project is licensed under the MIT License. Please see the LICENSE file for more information.

Contact If you have any questions or suggestions regarding this project, please feel free to contact us at aissamboussoufiane999@gmail.com.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages