Projet de compilation du langage WHILE vers NASM
Réalisé par JOUNEAUX Gwendal et SCHNEIDER-MAUNOURY Timothée.
L'objectif de ce projet est de créer un compilateur pour le langage WHILE vers un langage cible choisi par l'équipe projet en utilisant l'outil Xtext.
Pour pouvoir compiler un fichier WHILE, vous aurez besoin d'avoir un système linux avec NASM d'installé.
Le compilateur permet de traduire un programme .wh en fichier assembleur et en fichier executable.
Il fonctionne comme suit :
wh Tests/testsArithmetique.wh -o arith.out
Cela va créer un fichier out.asm, qui sera la traduction directe du code WHILE en assembleur. Puis le script le compile en l'exécutable arith.out. Il suffit ensuite de lancer cet exécutable, avec éventuellement des paramètres :
./arith.out fact 5
|---+-- Standalone : Répertoire du compilateur
| |-- Tests : Répertoire des fichiers de test manuel
| |-- Tests_Auto : Répertoire des fichiers de test automatiques
| `-- wh : Script de lancement du compilateur
| `-- wh.jar : Jar permettant l'exécution du compilateur
| `-- wh_TestsAuto : Script de lancement des tests automatiques
| `-- help.txt : Contenu de l'aide du script wh
| `-- testHelp.wh : Fichier de test utilisé dans l'aide
|
|---+-- Documents
| `-- rapport-COMP-Gwendal_Jouneaux-Timothée_SchneiderMaunoury.pdf
| `-- Schéma-de-traduction.pdf
| `-- Spécification-assembleur.pdf
|
`-- README.md : Ce fichier README
Cours : Olivier Ridoux
2018-2019 ESIR spécialité "Système d'Information"