s08-3-ejercicios-2

Post on 24-Jan-2016

214 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

sdfsdfsdfdsfdsfdsfsdfdsf

TRANSCRIPT

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)?

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)?

top related