25.06.2013 Views

1 transparent par page - Montefiore

1 transparent par page - Montefiore

1 transparent par page - Montefiore

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Commandes : condition, while<br />

◮ Condition :<br />

8<br />

< evalCom(C1, s) si evalBool(B, s) = true<br />

evalCom(if B then C1 else C2, s) =<br />

:<br />

evalCom(C2, s)<br />

⊥<br />

si evalBool(B, s) = false<br />

sinon<br />

◮ While : Une première idée :<br />

evalCom(while B do C, s)<br />

= evalCom(if B then (C; while B do C) else skip, s)<br />

= . . . evalCom(while B do C, s ′ ) . . .<br />

On se mord la queue...<br />

198

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!