Computer Science, asked by fahadsbhai12, 7 months ago

Q- Find the FIRST and FOLLOW set of following grammar prog → stmt stmt → if expr then block | while expr do block | expr ; expr → term => id | isZero? term | not expr | ++ id | −− id term → id | const block → stmt | { stmts } stmts → stmt stmts |∈

Answers

Answered by Anonymous
1

Answer:

Q- Find the FIRST and FOLLOW set of following grammar prog → stmt stmt → if expr then block | while expr do block | expr ; expr → term => id | isZero? term | not expr | ++ id | −− id term → id | const block → stmt | { stmts } stmts → stmt stmts |∈

..........

Similar questions