Design phrase structure grammar for a programming language called myC— with the following minimum set of features.

Design phrase structure grammar for a programming language called myC— with the following minimum set of features.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
  • ˆ 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

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER