Skip to main content

Larkhré

Mosi larkhré : « la langue de la machine », en soninké. Le langage pour apprendre à coder en français, avec des erreurs qui t'expliquent quoi corriger.

laz nom = "Awa"

fonk saluer(qui) {
    rend "Bonjour " + qui + " !"
}

pou i dan 1..3 {
    vox(saluer(nom))
}

tests

Essayer

Dans le navigateur, sans rien installer : larkhre.github.io/code (marche aussi sur téléphone, et hors ligne une fois ouvert).

Sur ton ordinateur (Python 3) :

pip install larkhre
larkhre mon_programme.laz     # exécuter un fichier
larkhre                       # mode interactif

Sans pip : python3 larkhre.py exemples/demo.laz.

Pourquoi Larkhré

  • Les erreurs sont expliquées en français, avec le « film » des dernières valeurs avant le plantage.
  • Des mots-clés écrits comme on parle : laz (variable), vox (afficher), kan (quand), tanke (tant que), pou … dan (pour … dans), fonk (fonction), walu (rien).
  • ralenti() montre le programme s'exécuter ligne par ligne, variables visibles.
  • Tes langues : #langue: anglais, #langue: francais (académique), et des packs en bambara et en wolof.
  • Une passerelle vers Python : larkhre --traduire prog.laz produit du Python lisible.

Le langage en 30 secondes

Larkhré Signification
laz x = 5 déclarer une variable
vox("salut") afficher
demand("Ton nom ? ") saisie clavier (renvoie un texte)
kan … { } sinon { } si / sinon
tanke … { } tant que
pou i dan 1..10 { } boucle pour
fonk f(x) { rend x } fonction et retour
kase / swiv break / continue
vrai / faux / walu true / false / null
et / ou / non and / or / not
klas … herite … classes et héritage
vox("Salut {nom}") interpolation
essaie { } rattrape err { } gestion d'erreurs
garde score = 0 variable qui se souvient entre deux exécutions

Le manuel complet : GUIDE_LARKHRE.md. L'historique : CHANGELOG.md.

Apprendre

  • L'École, dans le playground : 12 leçons avec vérification automatique.
  • Le livre Apprends à coder de zéro : 14 chapitres, exercices corrigés, 3 projets. Tous ses exemples sont vérifiés automatiquement dans tests/.

Pour les développeurs

  • Deux moteurs : larkhre.py (Python, zéro dépendance) et le moteur JavaScript du playground (docs/code/index.html), publié sur npm : npm install larkhre.
  • Tests : python3 tests/run_tests.py lance chaque programme sur les deux moteurs et compare leur sortie. GitHub les relance à chaque modification.
  • React : le composant <LarkhrePlayground /> dans react/.
  • Agents IA : le serveur MCP larkhre-mcp dans mcp/, et la spécification pour IA dans LARKHRE_POUR_IA.md.

English

Larkhré (mosi larkhré, "the language of the machine" in Soninke) is a beginner-friendly programming language with French keywords and error messages that explain what to fix. Curly braces, no semicolons. Try it in the browser at larkhre.github.io/code or pip install larkhre. Two engines (Python and JavaScript) are checked against the same test suite on every commit.

Licence

MIT — libre et gratuit, pour tout le monde. Créé par Ladji Doucaré, 2026. Anciennement LAZARUS.

Release files for larkhre 11.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for larkhre 11.1.0
File Size Uploaded
larkhre-11.1.0.tar.gz 32.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for larkhre 11.1.0
File Interpreter ABI Platform
larkhre-11.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 65.5 kB

Release files / larkhre-11.1.0.tar.gz

Download URL larkhre-11.1.0.tar.gz
Size 32.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e9792f98a731bc207e7fdb92b68ec71f5dc61177ad2c5310ea95e2b17f2ce3ad
BLAKE2b-256 checksum
How to use checksums
6e8949d2abf6a5f67a20b217f225cd12476d417b51f5f95460fe0871fd6883ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / larkhre-11.1.0-py3-none-any.whl

Download URL larkhre-11.1.0-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e5c0c8120a9d42754c703015d367474ee411f5a0365dfdf88753aee7de48b29
BLAKE2b-256 checksum
How to use checksums
1edf13e7c3929f580eb82938a67ea157d8a0c5d0969f3df9dd1676210085b087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

11.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page