1. Engineering
  2. Computer Science
  3. convert the following ebnf rule taken from pascal standard to...

Question: convert the following ebnf rule taken from pascal standard to...

Question details

Convert the following EBNF rule taken from Pascal standard to ordinary BNF. (You may need more than one rule, and you may need to introduce new nonterminals.)

<array_definition> ->

array "(" (<index_subtype_definition>

{,<index_subtype_definition>} | <discrete_subtype_definition>{,

<discrete_subtype_definition} )")" of <component_definition>

Convert the following EBNF rule taken from Pascal standard to ordinary BNF (You may need more than one rule, and you may need to introduce new nonterminals.) array-definition〉 → array ( (index-subtype, definition (,<index_subtype_definition>l<discrete_subtype_definition>, «discrete-subtype-definition»} )) of くcomponent-definition>

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution