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.

Chapter 2<br />

Concrete Syntax Notation<br />

Wherever the syntax for parts of the language is presented in the document it will be described in<br />

a BNF dialect. The BNF notation used employs the following special symbols:<br />

, the concatenate symbol<br />

= the define symbol<br />

| the definition separator symbol (alternatives)<br />

[ ] enclose optional syntactic items<br />

{ } enclose syntactic items which may occur zero or more times<br />

‘ ’ single quotes are used to enclose terminal symbols<br />

meta identifier<br />

non-terminal symbols are written in lower-case letters (possibly<br />

including spaces)<br />

; terminator symbol to denote the end of a rule<br />

( ) used for grouping, e.g. “a, (b | c)” is equivalent to “a, b | a,<br />

c”.<br />

– denotes subtraction from a set of terminal symbols (e.g.<br />

“character – (‘"’)” denotes all characters excepting the double<br />

quote character.)<br />

3

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

Saved successfully!

Ooh no, something went wrong!