ghostmiki
Messages postés1Date d'inscriptionjeudi 3 décembre 2009StatutMembreDernière intervention19 avril 2010
-
19 avril 2010 à 03:45
deadhand
Messages postés152Date d'inscriptiondimanche 15 octobre 2006StatutMembreDernière intervention27 août 2010
-
19 avril 2010 à 09:34
voila je demande votre aide pour m'explique comment faire une analyse lexical de sa:
R = { P ®Program id S_DCL Début S_INST Fin
S_DCL ®DCL | DCL S_DCL
DCL ®Var L_id : TYPE;
L_id® id | id, L_id
TYPE ® entier | réel
S_INST ®INST | INST S_INST
INST ® id := Expa;
INST ® Si Expb alors S_INST Fin Si
INST ® Si Expb alors S_INST Sinon S_INST Fin Si
Expb®Expr | non(Expb) | Expb et Expb | Expb ou Expb
Expr®Expa oprel Expa
Expr®(Expr)
Expa®Exp oparith Exp
Expa®(Expa)
Expa®id
Expa®nb
}
G = (V, T, P, R)
V = {P, S_DCL, DCL, S_INST, INST, Expb, Expr, Expa}
T = {Program, Début, Fin, Var, :, id, :=, ;, Si, Sinon, Fin Si, (, ),oparith, oprel, non, et, ou, entier, réel}