Question: 7 . This question has three parts: a . ( 1 2 pts ) Construct a context - free grammar for the set of all

7. This question has three parts:
a.(12pts) Construct a context-free grammar for the set of all fractions of the form a/b, where a is a signed integer in decimal notation and b is a positive integer.
b.(8pts) What is the Backus-Naur form for this grammar?
c.(8pts) Construct a derivation tree for -689/33 in this grammar.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!