Page 1 of 1

Is this grammar in BNF form? Justify your answer statement-> if-stmt (1) statement -> other ; (2) if-stmt -> if (exp)

Posted: Mon Jun 06, 2022 5:27 pm
by answerhappygod
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)