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
This mini compiler treats only the grammar explained here
- Download flex and install it
- Download bison and install it
- Install tkcode:
pip3 install tkcode
Open a terminal in the "compiling" folder and run the script:
./script.bash

