first commit

This commit is contained in:
2025-03-15 17:16:09 +01:00
commit 6b4a7c48c8
10 changed files with 154 additions and 0 deletions

21
examples/mots.spf Normal file
View File

@ -0,0 +1,21 @@
texte phrase = "Bonjour à tout le monde";
texte mot = "";
liste mots = [];
pour chaque texte caractère dans phrase faire {
si caractère vaut " " alors {
si taille mot > 0 alors {
ajouter mot dans mots;
mot = "";
}
} sinon {
mot = mot + caractère;
}
}
# Potentiel dernier mot
si taille mot > 0 alors {
ajouter mot dans mots;
}
afficher mots;