In this this project we designed a simple compiler as a solution for the topic raised by the professor of this academic module.
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator that we can use to read, process, execute or translate structured text or binary files. It uses an LL(*) algorithm for parsing. ANTLR is the successor to the Purdue Compiler Construction Tool Set (PCCTS), first developed in 1989, and is under active development. It is widely used in academia and industry to create all kinds of languages, tools and frameworks.
- Maven installed and added to your
PATH. - ANTLR 4 Plugin configured in your IDE (e.g., IntelliJ IDEA).
- Mark the
genfolder as the "Generated Source Root" in your IDE.Note: If you modify the
*.g4grammar files, you need to regenerate the code:- Reconfigure the
*.g4files: In IntelliJ IDEA, by righ click on each file, select configure ANTLR Tool 4.13.2 for MinINGParser/Lexer.g4 - Use the ANTLR tool or plugin to regenerate the
genfolder: Right click, select generate ANTLR recognizer. - Mark the gen Folder: In IntelliJ IDEA, right-click on the gen folder, select Mark Directory as, and choose Generated Sources Root
- Reconfigure the
- Clone the Repository:
git clone https://github.com/MohamedMouloudj/Custom-compiler.git cd Custom-compiler - Run Maven Clean:
mvn clean
- Run main method
- Mohamed Mouloudj
- Boudjelida Yanis
- Haddadi Chakib
- Brahim Djelloul Antri Hichem
- Hadj Kaddour Islem