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
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