Introduction

Baobab is a modern programming language whose keywords are in French. It doesn't reinvent programming: it takes Python's exact semantics (indentation, types, objects) and only changes the language. Under the hood, your code is transpiled to standard Python and run on CPython — so you keep the whole Python ecosystem.

Your first program

1
2
# hello.bao afficher("Bonjour, le monde !")
Bonjour, le monde !

afficher is the equivalent of Python's print: it writes its argument to standard output. Run this file with the Run button in Baobab Studio, or locally with bao run hello.bao.

If you know Python, you already know most of Baobab: only the keywords change (printafficher, deffonction, forpour…). The full mapping is in the reference.