{"id":25847359,"url":"https://github.com/samyb2/latsi-language","last_synced_at":"2025-10-08T10:39:36.767Z","repository":{"id":279780780,"uuid":"939948830","full_name":"SamyB2/LATSI-language","owner":"SamyB2","description":"Implement the new LATSI language with Ocaml and menhir.","archived":false,"fork":false,"pushed_at":"2025-02-27T11:23:12.000Z","size":2287,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T15:47:54.407Z","etag":null,"topics":["dune","grammar-parser","menhir","ocaml","ocamllex"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamyB2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-27T11:21:19.000Z","updated_at":"2025-02-27T11:32:34.000Z","dependencies_parsed_at":"2025-02-27T15:58:05.754Z","dependency_job_id":null,"html_url":"https://github.com/SamyB2/LATSI-language","commit_stats":null,"previous_names":["samyb2/latsi-language"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SamyB2/LATSI-language","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyB2%2FLATSI-language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyB2%2FLATSI-language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyB2%2FLATSI-language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyB2%2FLATSI-language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamyB2","download_url":"https://codeload.github.com/SamyB2/LATSI-language/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyB2%2FLATSI-language/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931652,"owners_count":26070788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dune","grammar-parser","menhir","ocaml","ocamllex"],"created_at":"2025-03-01T10:18:53.176Z","updated_at":"2025-10-08T10:39:31.746Z","avatar_url":"https://github.com/SamyB2.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GAS-Project\n\n## Compilation et Nettoyage\n\n- Pour compiler le projet, exécutez la commande suivante : \n```shell \n./exec.sh build\n```\n- Pour nettoyer le répertoire de travail, exécutez la commande suivante : \n```shell\n./exec.sh clean\n```\n## Exécution\n\n- Après la compilation, un lien vers le fichier exécutable nommé **gas_project** sera créé.\n- Pour exécuter le programme, utilisez la commande : \n```shell\n./gas_project\n```\n- Cela ouvrira un terminal où vous pourrez écrire votre programme Latsi.\n- Vous pouvez également rediriger l'entrée standard vers un autre fichier en utilisant la commande \n```shell\n./gas_project \u003c fic\n```\n- Le fichier `execTests.sh` permet d'exécuter les fichiers tests présents dans `Testing-files`\n- Pour s-y faire vous devez executer la commande suivante :\n```shell\n./execTests.sh\n```\n\n## Fonctionnalités Implémentées\n\n- Génération de tokens avec ocamllex.\n- Définition d'une grammaire avec menhir.\n- Construction d'un arbre de syntaxe abstrait.\n- Exécution d'un programme LATSI avec l'instruction VEVERS.\n- Extension 1 : Déclarations multiples de variables, par exemple `I = 1 , A = 2 * I , B = A - I`.\n- Extension 2 : Fonctions MIN et MAX avec la syntaxe `MIN (expression {, expression})` et `MAX (expression {, expression})`.\n- Extension 3 : Ajout d'une instruction SINON supplémentaire. \n    Il est désormais possible de compléter ou pas l'instruction `SI instruction ALORS instruction` \n    avec `SINON instruction`.\n- Extension 4 : Ajout des `\u0026\u0026` `et` , `||` `ou` et `!` `not` pour les conditions\n\n## Répartition des Tâches\n\n**Matyas MARQUES MARTINS :**\n- Définition des types Ocaml pour l'arbre de syntaxe abstrait.\n- Élaboration de la grammaire du langage LATSI avec menhir.\n- Ajout de l'extension 1.\n- Ajout de l'extension 4.\n\n**Sami BELMELLAT :**\n- Génération des jetons avec ocamllex.\n- Évaluation de l'arbre de syntaxe généré.\n- Ajout des extensions 2.\n- Ajout des extensions 3.\n\n**Travail réalisé en commun :**\n- Résolution des conflits SHIFT/REDUCE et REDUCE/REDUCE.\n- Création de fichiers de test pour chaque version du projet.\n- Organisation du répertoire du projet.\n- Documentation du code.\n\n## Auteurs\n**Matyas MARQUES MARTINS**\n**Sami BELMELLAT**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyb2%2Flatsi-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyb2%2Flatsi-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyb2%2Flatsi-language/lists"}