Skip to content

Hazem-Atya/mini-java-compiler

Repository files navigation

mini-java-compiler

  1. About The repo
  2. Setup
  3. Run the app

About the repo

This repository contains a mini java compiler with w simple graphical user interface for code editing. The document TP_2022.doc contains the grammar and the rules. Used technologies:

  • Flex: Fast lexical analyzer generator, used for Lexical analysis
  • Yacc Yet Another Compiler-Compiler, used for Syntactic analysis
  • Python3
  • Tkinter: A python package for GUI programming
  • Tkcode: Code block and code editor widget for tkinter with syntax highlighting

Important Note:

This mini compiler treats only the grammar explained here

Setup

  pip3 install tkcode

Run the app:

Open a terminal in the "compiling" folder and run the script:

./script.bash

Generating scope graph example:

Untitled

App screenshot

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published