Ahmed Zaidan
Ahmed Zaidan

Reputation: 8

Constructing grammar based on given rules

I have to construct a certain grammar for a given language where the language consists of strings of 0s and 1s that are the binary repr. of odd numbers greater that 6. I also have to create a parse tree for something like 10001 which is 17. How do I go about this problem?

Upvotes: 1

Views: 85

Answers (1)

Ahmed Zaidan
Ahmed Zaidan

Reputation: 8

Had to clutch up and solve it my self.

enter image description here

Upvotes: 0

Related Questions