25.07.2014 Views

VDM-10 Language Manual

VDM-10 Language Manual

VDM-10 Language Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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

import types signature = ‘types’, type import,<br />

{ ‘;’, type import }, [ ‘;’ ] ;<br />

type import = name, [ ‘renamed’, name ]<br />

| type definition, [ ‘renamed’, name ] ;<br />

import values signature = ‘values’, value import,<br />

{ ‘;’, value import }, [ ‘;’ ] ;<br />

value import = name, [ ‘:’, type ], [ ‘renamed’, name ] ;<br />

import functions signature = ‘functions’, function import,<br />

{ ‘;’, function import }, [ ‘;’ ] ;<br />

function import = name, [ [ type variable list ], ‘:’, function type ],<br />

[ ‘renamed’, name ] ;<br />

import operations signature = ‘operations’, operation import,<br />

{ ‘;’, operation import }, [ ‘;’ ] ;<br />

operation import = name, [ ‘:’, operation type ], [ ‘renamed’, name ] ;<br />

export definition = ‘exports’, export module signature ;<br />

export module signature = ‘all’<br />

| export signature,<br />

{ export signature } ;<br />

export signature = export types signature<br />

| values signature<br />

| export functions signature<br />

| operations signature ;<br />

export types signature = ‘types’, type export,<br />

{ ‘;’, type export }, [ ‘;’ ] ;<br />

type export = [ ‘struct’ ], name ;<br />

values signature = ‘values’, value signature,<br />

{ ‘;’, value signature }, [ ‘;’ ] ;<br />

value signature = name list, ‘:’, type ;<br />

export functions signature = ‘functions’ function export,<br />

{ ‘;’, function export } ;<br />

174

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

Saved successfully!

Ooh no, something went wrong!