Préface
Programmation en texte structuré
Publication 1756-PM007B-FR-P – Juillet 2008
Objet de ce manuel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Conventions utilisées dans ce manuel . . . . . . . . . . . . . . . . . . 5
Chapter 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Affectations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Spécification d'une affectation non rémanente. . . . . . . . . 10
Attribution d'un caractère ASCII à une chaîne de
caractères . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Utilisation des opérateurs et des fonctions arithmétiques . 13
Utilisation des opérateurs relationnels. . . . . . . . . . . . . . . 14
Utilisation des opérateurs logiques . . . . . . . . . . . . . . . . . 16
Utilisation des opérateurs sur bits . . . . . . . . . . . . . . . . . . 17
Détermination de l'ordre d'exécution . . . . . . . . . . . . . . . 17
Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Instructions de test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Certains mots clés sont réservés pour une utilisation
future . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
IF...THEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
CASE...OF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
FOR...DO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
WHILE...DO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
REPEAT...UNTIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Commentaires. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table des matières
3