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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -