Assignment_3

Assignment_3 - L, then 1 L n . (30 pts) 3) Augment the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE324 Spring 2011 Homework #3 Due Date : Tuesday, April 5 th , 2011 ( in class ) Solve the following problems : 1) Do Exercise 4.7 page 152 . ( 40 pts ) 2) Augment the answered BNF description in problem (1)above with the code that makes it an attribute grammar that is able to enforce a condition on the identifier's length, e.g., if its length is
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: L, then 1 L n . (30 pts) 3) Augment the grammar in (2) above to check if such identifier is declared (defined) in the upper section of the code or not? [Assume that its type should have been synthesized from the declaration section, and inherited into its usage within the imperative section of the code] (30 pts)...
View Full Document

Ask a homework question - tutors are online