Is this grammar in BNF form? Justify your answer
statement-> if-stmt (1)
statement -> other ; (2)
if-stmt -> if (exp) statement (3)
if-stmt -> if (exp) statement else statement (4)
exp-> 0 (5)
exp-> 1 (6)
Is this grammar in BNF form? Justify your answer statement-> if-stmt (1) statement -> other ; (2) if-stmt -> if (exp)
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Is this grammar in BNF form? Justify your answer statement-> if-stmt (1) statement -> other ; (2) if-stmt -> if (exp)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!