This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,65 @@ | ||
# ASE-DSL | ||
Labs on Domain-Specific Languages (DSL) | ||
<h1 align="center">Projet ASE - Mini Mecha Code</h1> | ||
<h4 align="center">Cody ADAM & Mael KERICHARD</h4> | ||
<p align="center"> | ||
<img src="https://img.shields.io/badge/-ESIR-orange" alt="ESIR"> | ||
<img src="https://img.shields.io/badge/-Langium-red" alt="Langium"> | ||
<img src="https://img.shields.io/badge/-ASE-blue" alt="ASE"> | ||
</p> | ||
|
||
![Demo](mini-mecha-code/doc/timeline.gif) | ||
## 🗂️ Structure du projet | ||
|
||
```text | ||
. | ||
├── dsl - Contient le projet eclise | ||
└── mini-mecha-code - Contient le projet langium | ||
``` | ||
|
||
## 👷 Utilisation | ||
|
||
### 🌐 Web | ||
|
||
Le projet est [accessible ici](https://pixselve-school.github.io/ASE-DSL/static/monacoClassic). | ||
|
||
Néanmoins, pour le compiler sois-même : | ||
|
||
```bash | ||
cd mini-mecha-code | ||
npm i | ||
npm run langium:generate | ||
npm run build:web | ||
``` | ||
|
||
Puis pour lancer le serveur web : | ||
|
||
```bash | ||
npm run serve | ||
``` | ||
|
||
Et rendez-vous à l'adresse affichée dans la console. | ||
|
||
### 🧩 Extension VSCode | ||
|
||
```bash | ||
cd mini-mecha-code | ||
npm i | ||
npm run langium:generate | ||
npm run build | ||
``` | ||
- Appuyez sur `F5` pour ouvrir une nouvelle fenêtre avec l'extension chargée. | ||
- Créez un nouveau fichier avec comme extension `.mini` | ||
- Enjoy ! | ||
|
||
### 💬 CLI | ||
|
||
```bash | ||
cd mini-mecha-code | ||
npm i | ||
npm run langium:generate | ||
npm run build | ||
``` | ||
|
||
Utilisez `node ./bin/cli` pour afficher les options disponibles ou `node ./bin/cli generate <file>` pour générer le code Adruino. | ||
|
||
## 🖼️ Screenshots | ||
|
||
![Demo](mini-mecha-code/doc/timeline.gif) |