Chapter 11: Problem 11
a. Create a BNF grammar that describes simple Boolean expressions of the form var AND var var OR var where var is one of the symbols \(w, x, y\), and \(z\). b. Modify your grammar from Exercise 11 a so that the Boolean expressions can be of the form expr AND expr expr OR expr where expr is either a simple variable \((w, x, y,\), or z) or an expression of the form (var = var) (var < var) (var > var) c. Modify your grammar one more time to allow a Boolean expression to have an arbitrary number of terms connected by either AND or OR. That is, your expressions can be of the form expr AND expr OR expr OR expr AND expr....
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.