FIRSTSTMTS tokimport FIRSTSIMPLESTMT tokimport FIRSTSMALLS
FIRST(STMTS) = {tok_import}
FIRST(SIMPLE_STMT) = {tok_import}
FIRST(SMALL_STMTS) = {tok_semi, ?}
FIRST(SMALL_STMT) = {tok_import}
FIRST(DOTTED_AS_NAME) = {tok_name}
FIRST(DOTTED_NAME) = {tok_name}
FOLLOW(STMTS) = {$}
 FOLLOW(SIMPLE_STMT) = {tok_import, $, newline}
FOLLOW(SMALL_STMTS) = {newline}
FOLLOW(SMALL_STMT) = {tok_semi, newline}
FOLLOW(DOTTED_AS_NAME) = {tok_semi, newline}
FOLLOW(DOTTED_NAME) = {tok_as}
--------------------------------------------------------------------------------------------------------------------------
(b) Construct the predictive parsing table for this grammar.
(c) Create the LR(0) set of items and the Action and GOTO parsing tables to be used with a bottom up SLR parser for this grammar.
Solution
please upload the production rules for the grammar.. otherwise what entries can i fill in the table?
