25.07.2014 Views

VDM-10 Language Manual

VDM-10 Language Manual

VDM-10 Language Manual

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.

Appendix A. The Syntax of the <strong>VDM</strong> <strong>Language</strong>s<br />

A.7.18<br />

The Is Expression<br />

general is expression = is expression<br />

| type judgement ;<br />

is expression = ‘is ’, 2 name, ‘(’, expression, ‘)’<br />

| is basic type, ‘(’, expression, ‘)’ ;<br />

type judgement = ‘is ’, ‘(’, expression, ‘,’, type, ‘)’ ;<br />

A.7.19<br />

The Undefined Expression<br />

undefined expression = ‘undefined’ ;<br />

A.7.20<br />

The Precondition Expression<br />

pre-condition expression = ‘pre ’, ‘(’, expression,<br />

[ { ‘,’, expression } ], ‘)’ ;<br />

A.7.21<br />

Base Class Membership (<strong>VDM</strong>++ and <strong>VDM</strong>-RT)<br />

isofbaseclass expression = ‘isofbaseclass’, ‘(’, name, expression, ‘)’ ;<br />

A.7.22<br />

Class Membership (<strong>VDM</strong>++ and <strong>VDM</strong>-RT)<br />

isofclass expression = ‘isofclass’, ‘(’, name, expression, ‘)’ ;<br />

A.7.23<br />

Same Base Class Membership (<strong>VDM</strong>++ and <strong>VDM</strong>-RT)<br />

samebaseclass expression = ‘samebaseclass’, ‘(’, expression,<br />

expression, ‘)’ ;<br />

A.7.24<br />

Same Class Membership (<strong>VDM</strong>++ and <strong>VDM</strong>-RT)<br />

sameclass expression = ‘sameclass’, ‘(’, expression,<br />

expression, ‘)’ ;<br />

2 Note: no delimiter is allowed<br />

191

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

Saved successfully!

Ooh no, something went wrong!