I have an idea I can do it by hand but i am not able to implement via program
I need help with construction of Simple LR parsing table given the grammar productions in a file
I am not able to implement the closure, goto and to find the sets of items construction my main problem is the position of parser that is . how to implement this.
please help me I am ready to forgo anything for this. please get me started my posting some code for these functions and combining them for building the slr parsing table
if anybody needs the algorithms simple google of construction of slr parsing table will give the algorithms clearly if anybody wants the dragon book that is compilers book I am pleased to upload.
I know how to separate identifiers ,keywords,operators from a file given the productions in a file.I have posted the code.
Main Topics
Browse All Topics





by: mrjoltcolaPosted on 2009-04-05 at 14:28:18ID: 24073050
The way I see it, you have things to accomplish other than building the parsing table. You need to parse a grammar yourself and convert it to discrete token values, because a parsing table works (at least traditionally) on integer tokens, not strings.
Which part do you need help with? We cannot do the assignment for you, due to EE rules, but we can answer questions. Have you started a program? Have you an idea of the different phases? Do you even have a program that will read your grammar file?