parsing - Is This LL(1) grammar -
it's important me, please me.
grammar ll(1)?
s -> lab l -> d | ε -> da | ba b -> bb | ε
can me ll(1) parsing table?
right this?
first(s) = {a,b,d} first(l) = {d} first(a) = {b,d} first(b) = {b} follow(s) = {$} follow(l) = {a,b,d} follow(a) = {b,$} follow(b) = {$}
i used jflap tool on grammar. jflap not think grammar ll(1), can try , build parse table it.
you experiment grammar in jflap make ll(1) conformant.
Comments
Post a Comment