In: Computer Science
Explain the main differences between grammars in problems 1, 2 and 3.
1. Expr -> Expr + Term I Expr * Term I Term
Term-> 0 I ... I 9 I (Expr)
2. Expr -> Term+ Expr I Term * Expr I Term
Term -> 0 I …. 9 I (Expr)
3. Expr -> Expr + Term I Term
Term-> Term* Factor I Factor
Factor-> 0 I ... I 9 I (Expr)
Note : if you have any queries please post a comment thanks a lot.. always available to help you...