PDF Archive

Easily share your PDF documents with your contacts, on the Web and Social Networks.

Share a file Manage my documents Convert Recover PDF Search Help Contact



SpecyfikacjaKompilatora.pdf


Preview of PDF document specyfikacjakompilatora.pdf

Page 1 2 3 4 5

Text preview


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

program

-> DECLARE vdeclarations IN commands END

vdeclarations -> vdeclarations pidentifier
| vdeclarations pidentifier ( num )
|
commands

-> commands command
|

command

-> identifier := expression ;
| IF condition THEN commands ENDIF
| IF condition THEN commands ELSE commands ENDIF
| WHILE condition DO commands ENDWHILE
| FOR pidentifier FROM value TO value DO commands ENDFOR
| FOR pidentifier DOWN FROM value TO value DO commands ENDFOR
| GET identifier ;
| PUT value ;

expression

-> value
| value
| value
| value
| value
| value

+
*
/
%

value
value
value
value
value

condition

-> value = value
| value != value
| value < value
| value > value
| value <= value
| value >= value

value

-> num
| identifier

identifier

-> pidentifier
| pidentifier ( pidentifier )
| pidentifier ( num )

Rysunek 1: Gramatyka języka