Integrantes
- Anjhelo Giovanny Ramírez Suárez Codigo: 20221099014
- Daniel Ricardo Galván Torres Codigo: 20221099003
This is an example of a simple Entity DSL through python and Jinja2 This project was based on this example
You have to have installed
- Python
- pip
- textX
- Jinja2
To create a new entity, follow the next steps:
- Go to entidades folder.
- Create new file with .ent extension.
- File must to contain next structure:
entity [name] { [attribute] : [type] }- Example:
entity domiciliario { nombre : string apellido : string telefono : integer placa : string } - Save your file.
Run with python main.py
As a result of the script generates a structure into proyecto_generado folder with next files and folders: