Design phrase structure grammar for a programming language called myC— with the following minimum set of features.
- myC— is derived from C by many simplification.
- It has primitive data types int, float, char, boolean, string and array types.Arrays can be multi-dimensional.
- It has assignment statements, conditional statements and loop statements.
- It has arithmetic expressions consisting of variables, numbers and arith- metic operators. It also has string literals and string operators.
- It has Boolean expressions formed using relational operations on arith- metic and string expressions, and logic conjunction, disjunction and nega- tion.
- It supports type declaration of variables.
- It supports declaration and invocation of functions.Write an unambiguous grammar for myC—. This assignment can be done in groups of up to 2 students. All group members are expected to contribute and will receive the same grade which does not depend on the size of the group. You must typeset your solution using a document processing software; no hand- written solution will be accepted.
1