Question: Question 2. (5 points) Write a grammar that recognizes a list of variable definition lines. Each line contains a type (int or char) followed by

Question 2. (5 points) Write a grammar that recognizes a list of variable definition lines. Each line contains a type (int or char) followed by a list of simple variables (identifiers) separated by comma (,). Each line ends with a semicolon (;). For example: int a, b, d; char aa; int ccc, ddd; char x, y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
