Due : March 1.
1. Using the Ada grammar as specified in sinfo.ads, write the parse tree for
procedure incr (x : in out vec) is
count : float;
for J in vec'range loop
vec (J) := vec (J) + 1;
count := float (vec'length (1));
2. From text: problems 4.1 (p. 267), 4.5, and 4.11 (part a only).
3. Write the grammar for logical expressions in C++ or Java (it's ok to look
it up). Include the conditional operator ("?"). Write the parse tree for
some expression with four or more operators.