Homework8 - 4 Problem 4(30 Points Consider the denotational...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COP 5555 Programming Language Principles Homework 8 Assigned: July 20, 2011 Deadline: 11:59pm August 3, 2011 NOTE: This homework is worth 200 points (so it’s worth 2% of your whole grade) *Note: Please submit your solution to the e-learning system by the deadline. No late submission is allowed. 1. Problem 1 (30 Points) In the PowerPoint of Lecture 27, slide 21, at the end of the definition of the Pascal "for" loop, why do we have "(Replace m I \bottom, i, o)"? 2. Problem 2 (30 Points) In the same Powerpoint lecture, slide 23, at the end of the definition of the Pascal "case" statement, why do we have "o (\lambda(v,s).s)"? 3. Problem 3 (40 Points) Add a 'do' statement (as in the C language) to the denotational semantics specification of Tiny.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 4. Problem 4 (30 Points) Consider the denotational semantics specification of Tiny. Suppose we were to make a single change to the specification of the '+' operator (slide 20 lecture ppt 26). Consider changing the LAST occurrence of s2 to s1, on the next-to-last line. Explain in plain English how the semantics of the Tiny language change due to this change in the specification. Illustrate your argument by constructing a sample Tiny program that illustrates the different semantics. 5. Problem 5 (30 Points) Why is type checking difficult in the denotational description of Tiny? 6. Problem 6 (40 Points) Write the denotational description of the 'case' statement in C for Tiny....
View Full Document

This note was uploaded on 01/22/2012 for the course COP 5555 taught by Professor Staff during the Fall '08 term at University of Florida.

Page1 / 2

Homework8 - 4 Problem 4(30 Points Consider the denotational...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online