FIRST(STMTS) = {tok_import} FIRST(SIMPLE_STMT) = {tok_import} FIRST(SMALL_STMTS)
ID: 3553241 • Letter: F
Question
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.
Explanation / Answer
please upload the production rules for the grammar.. otherwise what entries can i fill in the table?
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.