Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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?