Keywords:
con= constvar= varecr= ecrirelir= lire
Operators:
aff= affectation (/^:=/)plu=+min=-mul=*div=/opp=(com=,clo=)col=;equ==
Operands:
idv= name of a variablenum= number (positive integer)
A= AxiomP= ProgramLd= List of declarations (may be empty)Li= List of instructions (at least one)D= DeclarationLv= List of variables (may be empty)Lc= List of constants (may be empty)I= InstructionE= Expression
-
A -> P -
P -> Ld Li -
Ld -> Ld D -
Ld -> ε -
Li -> Li I -
Li -> I -
D -> var idv Lv ; -
D -> con idv = num Lc ; -
Lv -> Lv , idv -
Lv -> ε -
Lc -> , idv = num -
Lc -> ε -
I -> idv := E ; -
I -> ecr E ; -
I -> lir idv ; -
E -> E + E -
E -> E - E -
E -> E * E -
E -> E / E -
E -> (E) -
E -> idv -
E -> num