1. Engineering
  2. Computer Science
  3. what are the advantages of extended bnf ebnf over bnf...

Question: what are the advantages of extended bnf ebnf over bnf...

Question details
  1. What are the advantages of Extended BNF (EBNF) over BNF for grammar? For a Given BNF: <L-expr> ::  = true | false | <identifier>  | not <L-expr>  | <comparison>  | <L-expr> <L-op> <L-expr>  Give equivalent EBNF.
  2. Give unambiguous grammar for nested if-then-else structure. Using the same unambiguous grammar show how we can parse the following structure of if then else statement: if E1 then if E2 then S1 else S2 else S3.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution