Back -
User Guide Index | Previous - Editor Overview | Next - Printing - Microsoft WordEntering Specifications - Examples
The following is some example fragments of Z together with a step by step guide how to enter them in the document editor.
Please note these are examples are for purely entering specifications and are not meant to be consistent.
Create a new document as described in "The Formaliser Library" and open it for editing in the document editor window. You should be presented with a blank document containing only one "<Paragraph>".
Each example will need a separate paragraph. To add more paragraphs, highlight the paragraph and select "Append Node" from the Edit menu, this will insert another paragraph after the current one. Repeat this for as many paragraphs as you need. Note - after adding the first one, CTRL-y repeats the last action and so is a quick way of adding several paragraphs.
Every action selected from the Edit menu can also be selected using the pop up menu.
You will see that entering some of the more complicated constructs requires quite a few steps, in these cases it will be easier to type in the details once the basic construct has been defined.
Inclusion
Parent Section: "Z2 Toolkit" |
Definition
Scotland == {(Edinburgh,8),(Glasgow,7),(Aberdeen,6)} |
Given Sets
[SETTING,VALUE] |
Free Type Definition
BUTTON ::= accept | cancel |
Schema Box
ÚÄExampleSchemaÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
This gives us the basic outline of the schema. Now follows a guide to entering each line.
Line 1
Line 2
Line 3
Line 4
Schema Definition
RExampleSchema ExampleSchema <SchemaExp7> |
Note - <SchemaExp7> is left uninstantiated this is because these must be previously declared schemas and since we have no more that have been declared the parser will not allow anything to be entered here.