|
@@ -60,12 +60,19 @@ Body : tAO Instructions tAF ;
|
60
|
60
|
|
61
|
61
|
Instructions : Instruction Instructions | ;
|
62
|
62
|
|
63
|
|
-Instruction : Aff | Printf | If ;
|
|
63
|
+Instruction : Aff | Printf | If | Declaration ;
|
64
|
64
|
|
65
|
65
|
Aff : tID tEQ E tPV ;
|
66
|
66
|
|
67
|
67
|
E : tNB | tID | E tADD E | E tMUL E | E tSUB E | E tDIV E | tPO E tPF | tSUB E ;
|
68
|
68
|
|
|
69
|
+DeclarationBody : tID tVIRG DeclarationBody | tID ;
|
|
70
|
+
|
|
71
|
+DeclarationInt : tINT DeclarationBody tPV ;
|
|
72
|
+
|
|
73
|
+DeclarationConst : tCONST DeclarationBody tPV ;
|
|
74
|
+
|
|
75
|
+Declaration : DeclarationInt | DeclarationConst ;
|
69
|
76
|
|
70
|
77
|
If : IfSimple | IfElse ;
|
71
|
78
|
|