0

How to covert bnf to ebnf from that !?

BNF

 <Z> ::= DCd | D<N>C 

EBNF

<Z> ::= D[<N>}C[d]

or
 
<Z> ::= D[<N>C[d]]

(i think that what wrong in grammar?)

ฺBUGS
  • 1
  • 1
  • 1
    It's fine as it is. No simplification is possible. – rici Oct 06 '20 at 20:21
  • EBNF is Extended BNF, and typically includes BNF as a subset. That is, if you have something written in BNF, it would typically qualify as EBNF too. So you don't need to do anything to "convert" BNF to EBNF. Instead, your question seems to be more about factoring productions. – Michael Dyck Oct 07 '20 at 17:57

0 Answers0