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)
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am