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.

<strong>VDM</strong>-<strong>10</strong> <strong>Language</strong> <strong>Manual</strong><br />

A.7.12<br />

Record Expressions<br />

record constructor = ‘mk ’, 1 name, ‘(’, [ expression list ], ‘)’ ;<br />

record modifier = ‘mu’, ‘(’, expression, ‘,’,<br />

record modification,<br />

{ ‘,’, record modification }, ‘)’ ;<br />

record modification = identifier, ‘|->’, expression ;<br />

A.7.13<br />

Apply Expressions<br />

apply = expression, ‘(’, [ expression list ], ‘)’ ;<br />

field select = expression, ‘.’, identifier ;<br />

tuple select = expression, ‘.#’, numeral ;<br />

function type instantiation = name, ‘[’, type, { ‘,’, type }, ‘]’ ;<br />

A.7.14<br />

The Lambda Expression<br />

lambda expression = ‘lambda’, type bind list, ‘&’, expression ;<br />

A.7.15<br />

The New Expression (<strong>VDM</strong>++ and <strong>VDM</strong>-RT)<br />

new expression = ‘new’, name, ‘(’, [ expression list ], ‘)’ ;<br />

A.7.16<br />

The Self Expression<br />

self expression = ‘self’ ;<br />

A.7.17<br />

The Threadid Expression<br />

threadid expression = ‘threadid’ ;<br />

1 Note: no delimiter is allowed<br />

190

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

Saved successfully!

Ooh no, something went wrong!