Syntax

Baobab's syntax is built on indentation, exactly like Python: a block opens with a : and gathers the indented lines below it. Keywords are in French, encoding is UTF-8 native, and you write one statement per line.

1
2
3
4
fonction principale(): afficher("Démarrage") principale()
Démarrage

Comments start with #. There are no semicolons or braces: indentation (4 spaces per level, by convention) is what structures the program.

Same rule as Python: forget the : or misalign an indent, and the program refuses to run, pointing at the offending line.