s08-3-ejercicios-2
DESCRIPTION
sdfsdfsdfdsfdsfdsfsdfdsfTRANSCRIPT
![Page 1: S08-3-Ejercicios-2](https://reader036.vdocuments.co/reader036/viewer/2022082714/563dba37550346aa9aa3b72b/html5/thumbnails/1.jpg)
Dada la gramática G={N,T,P,S} Donde: N = {E,S,T,M,F} T = {+,-,*,(,),n}
P = { E S T | T S + | - T M F | F
M * F ( E ) | n } S = {E}
Eje
rcic
io 5
¿La gramática es de tipo LL(1)?
![Page 2: S08-3-Ejercicios-2](https://reader036.vdocuments.co/reader036/viewer/2022082714/563dba37550346aa9aa3b72b/html5/thumbnails/2.jpg)
Dada la gramática G={N,T,P,S} Donde: N = {sentencia, sent_if, parte_else, exp_bool}
T = {if, (, ), else, true, false, otra_sent} P = { sentencia sent_if | otra_sent
sent_if if (exp_bool) sentencia parte_else
parte_else else sentencia | λ
exp_bool true | false
}
S = {sentencia} Eje
rcic
io 6
¿La gramática es de tipo LL(1)?