How to Use the Template:
1. Replace Mini Python with your compiler's name.
1. Fill in placeholders like [language], [tool version], and other details specific to your project.
1. You can expand on the sections, such as providing detailed usage instructions or more examples.
Feel free to modify this based on your project's requirements!
The Mini Python Compiler is a Java compiler designed to write the lexical and syntactic analyzers, and implement the construction of the abstract tree. It translates Python fragement source code into abstract tree and includes optimizations for [specific features or targets].
- Lucine GIRAUD
- Lina LEKBOURI
- Julien MARLAND
- Hugo WERCK
- Fast and efficient compilation
- Support for [languages or standards]
- [Any unique features or goals]
- Cross-platform: Runs on Linux, MacOs, Windows
- Optimization: Implements advanced optimizations like [list of optimizations: e.g., constant folding, dead code elimination]
- Error Reporting: Detailed syntax and semantic error messages
- [Other features]
- [Language/Tool Version(s)]: Ensure you have [required language/tools] installed.
pip install graphviz
$ sudo apt-get install [required-dependencies]Clone the repository and install any required dependencies:
$ git clone https://gibson.telecomnancy.univ-lorraine.fr/projets/2425/compil/pcl-grp28.git
$ cd [project-name]
$ ./configure
$ make
$ sudo make installTo compile a Mini Python source file:
$ [project-name] [options] [source-file]-o [file]: Specify output file name-O: Enable optimizations--debug: Enable debug mode--help: Show help message
$ [project-name] -o output.exe example.lang$ [project-name] --debug example.langHere are some sample programs you can compile using Mini Python:
- Hello World:
// Example code for Hello World in [language]
- Fibonacci Sequence:
// Example code for Fibonacci in [language]
For more examples, refer to the examples/ directory.
To run tests, make sure you have [testing framework] installed:
$ make testYou can also add specific test cases in the tests/ folder and run them with:
$ ./run_tests.shIf you encounter any issues or have feature requests, please open an issue on the GitHub repository.
- [Tool/Libraries] used in this project
- Special thanks to [contributors, advisors, etc.]