Skip to content

Commit 96085fa

Browse files
committed
Faire: check de présence de Tant_que.
1 parent eb6c820 commit 96085fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

microalg.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ Voir <http://fr.wikipedia.org/wiki/Fonction_OU>.")
396396
(de Faire arg_lst (let (Splitted (split arg_lst 'Tant_que)
397397
Corps (car Splitted)
398398
Bool (caadr Splitted))
399+
(ifn (<> arg_lst Corps) (quit "Commande `Faire` sans mot-clé `Tant_que`."))
399400
(run Corps)
400401
(if (!boolCheckM2P (eval Bool) "La condition n’est pas un booléen.")
401402
(while (!boolCheckM2P (eval Bool) "La condition n’est pas un booléen.")

0 commit comments

Comments
 (0)