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

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

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

140A.2.SyntacticRules compound{statement ::=block begin [declaration{section] [constant{section]<br />

::=forenumeration{variable:enumeration{typerepeat ::=forselectorinspect endfor<br />

endblock [h<strong>and</strong>ler]...<br />

[statement;]...<br />

::=inspectdeclaration ::=inspectselectorbegin ::=iftest{expression<br />

endif frompolymorph{expressioninspect{typestate<br />

[else[statement;]...] then[statement;]...<br />

::=select[select{expression] endinspect [statement;]...<br />

Varioussyntacticelementsappearingincompoundstatements: ::=whiletest{expressionrepeat endselect [select{clause]...<br />

constant{sectionendwhile<br />

[statement;]... otherwise{clause<br />

select{clause::=boolean{guard[statement;]... h<strong>and</strong>ler::=on([exception{name[,exception{name]...]) ::=constant([base{variable[,base{variable]...]) ::=onexit([exit{name[,exit{name]...])

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

Saved successfully!

Ooh no, something went wrong!