Logo Lanfrica

Massire17/malilang

Domain:

natural language processing

Record type:

software
Creator:
Mas
Host:
MaliLang apprenner en bambara pour bien comprendre ce que vous faites # Documentation Officielle — MaliLang Un langage simple, expressif et culturel, basé sur des mots bambara et conçu pour apprendre à programmer facilement. ## Introduction MaliLang est un langage interprété basé sur JavaScript, utilisant des mots-clés inspirés des langues du Mali. Il vise à rendre la programmation plus accessible, expressive et culturelle. ## Installation ### Installation globale (NPM) ``` npm install -g malilang1 ``` Puis dans vscode vous pouvez installer l'extention MaliLang. ## Lancer un programme MaliLang Créer un fichier : ``` script.mli ``` Exécuter : ``` malilang run script.mli ``` ## Structure du projet ``` malilang/ ├── lexer.js ├── parser.js ├── interpreter.js ├── keywords.json └── malilang.js ``` ## Mots-clés MaliLang | Bambara | Description | JS | |--------|-------------|----| | faleden | variable | let | | sebeni | afficher | console.log | | ni | si | if | | noteni | sinon si | else if | | note | sinon | else | | kamasoro | tant que | while | | koson | boucle for | for | | fole | foreach | foreach | | kono | dans | in | | barakunda | fonction | function | | segini | retourner | return | | kilasi | classe | class | | bora | héritage | extends | | jolikaila | constructeur | constructor | | nin | ceci | this | | ba | parent | super | | sugandi | switch | switch | | gnenata | cas | case | | folo | défaut | default | | karali | break | break | | kura | nouveau | new | | fu | null | null | | sebe | vrai | true | | nkalo | faux | false | | kalani | entrée utilisateur | input | | na | importer | import | | kake | afficher | console.log | | korobo | try | try | | fili | catch | catch | | kunkurun | interface | interface | | tara | implements | implements | | benka | interface | interface | ## Variables ``` faleden x = 10 faleden nom = "Papin" ``` ## Affichage ``` sebeni "Bonjour" sebeni 10 + 20 ``` ## Entrée utilisateur ``` faleden nom = kalani("Votre nom : ") sebeni "Bienvenue " + nom ``` ## Conditions ``` ni age >= 18 { sebeni "A …