28.01.2015 Views

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sionisthemeetofthetypestatebeforeexecutionofthetestexpression<strong>and</strong> thetypestateonnormalterminationoftherepeatclause.Thetypestate 9811.3.ControlFlowOperations asthetypestateafterexecutionofthetestexpression. Select onentrytotherepeatclauseisthetypestateafterexecutionofthetest expression.Thetypestateonterminationofthewhileclauseisthesame compound{statement select{clause ::=select[select{expression] endselect [select{clause]...<br />

event{guard ::=boolean{guard[statement;]... ::=event{guard<strong>and</strong>boolean{guard[statement;]... ::=event{guard[statement;]... otherwise{clause<br />

boolean{guard ::=eventinport{variable<br />

Theselectstatementconsistsofanoptionalexpression,asetofselect clauses,<strong>and</strong>anotherwiseclause.Aselectclauseconsistsofaguard<strong>and</strong>a otherwise{clause select{expression ::=otherwise[statement;]... ::=where(test{expression)<br />

clause.Aguardcanbe abooleanguard, aconjunctionofabooleanguard<strong>and</strong>aneventguardnaminganinput port,or ::=expression<br />

eventinport1 Example: select where(x>0) aneventguardalone,whichistreatedasifabooleanguardof'true' y:=x+y; hadbeencoded.

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

Saved successfully!

Ooh no, something went wrong!