SauzeauYannis / TLC-Projet

Create a programming language to draw simple shapes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TLC-Projet

Table of Contents

Ce projet a été effectué en quatrième année du CMI Informatique à l'UFR SFA Université de Poitiers dans le cadre de l'enseignement Théorie des langages et compilation.

Ce projet a été développé en binôme sous Ubuntu avec Visual Studio Code.

Pour compiler le projet, vous pouvez utiliser le Makefile.

Ensuite vous pouvez tester les exemples avec la commande make :

* cube => Dessine un cube en 3D

* erreur => Possède quatre erreurs qui sont commentées et qu'il faut 
décommenter pour voir les messages d'erreurs

* quadrilatere => Dessine un quadrilatere avec une croix bleu et rouge
au centre.

* quadrillage => Créer un quadrillage avec des boucles 

* test => Sert de fichier test à notre syntaxe nous vous conseillons
d'utiliser ce fichier pour tester notre langage

Si vous voulez créer votre propre fichier faites le dans le dossier ./Exemple et respectez la syntaxe décrite dans la documentation ci-dessous. Ensuite vous pouvez lancer le programme sur votre fichier avec la commande ./prog < ./Example/<nom_de_votre_fichier>

Vous trouverez une documentation dans le ReadMe.txt.

  • Analyse lexicale
    • Lexeur
    • Lex
  • Analyse syntaxique
    • Parseur
    • Yacc
  • Compilation

Nous avons obtenu la note de 17/20.

This project was done in the fourth year of the CMI Informatique at the UFR SFA Université de Poitiers as part of the Théorie des langages et compilation course.

This project was developed in binomial under Ubuntu with Visual Studio Code.

To compile the project, you can use the Makefile.

Then you can test the examples with the make command:

* cube => Draws a 3D cube

* error => Has four errors that are commented out and that you have to uncomment to 
uncomment to see the error messages

* quadrilatere => Draw a quadrilatere with a blue and red cross in the center.
in the center.

* grid => Create a grid with loops 

* test => Serves as a test file for our syntax.
to use this file to test our language

If you want to create your own file do it in the folder ./Example and respect the syntax described in the documentation below. Then you can run the program on your file with the command ./prog < ./Example/<name_of_your_file>

You can find a documentation in the ReadMe.txt.

  • Lexical analysis
    • Lexer
    • Lex
  • Syntactic analysis
    • Parser
    • Yacc
  • Compilation

We obtained a score of 17/20.

About

Create a programming language to draw simple shapes


Languages

Language:C++ 79.6%Language:Yacc 11.7%Language:Makefile 4.9%Language:LLVM 3.8%