include_template( 'topper.html' ); ?> CS 3304 semester(); ?> Homework Assignment 3 include_template( 'page-start.html' ); ?>
Note: The following instructions are repeated from the Homework Dates/Guidelines page:
Your solutions for each homework assignment must be prepared with a word processor (e.g., LaTeX or Word), and are due at the beginning of class on the due date specified unless otherwise noted on the assignment itself.
Note that all homework problems taken from the text are in the Problem Sets. Do not turn in solutions to Review Questions by mistake!
Complete each of the following problems:
Chapter 3, Problem 6
Consider this grammar:
<start> --> <article> <adjs> <noun> <article> --> a <adjs> --> | simple | <adjs> , <adjs> <noun> --> problem
Prove that this grammar is ambiguous.
What key feature of the grammar itself should tip you off that it is ambiguous?
Using the virtual machine instructions given in Section 3.5.1.1 (in the 4th edition, Section 3.6.1.1), give an operational semantic definition of the following: