090_Type_Checking

090_Type_Checking - Type- Checking Announcements ●...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Type- Checking Announcements ● Programming Project 2 due tonight at 11:59PM. ● Office hours from 1:00PM – 3:00PM in Gates 160. ● Programming Project 3 out. ● Scope checkpoint due Saturday, July 23 at 11:59PM . ● This is a hard deadline , no late days allowed. ● Final submission due Wednesday, July 27 at 11:59PM . ● Start early ; this assignment is significantly larger than the previous two assignments. More Announcements ● Programming Assignment 1 graded and returned on paperless.stanford.edu. ● Mean: 52.9 / 60 ● Stdev: 8 ● Written Assignment 1 graded. Hard copies returned after class, electronic copies will be emailed later today. ● Mean: 20.2 / 24 ● Stdev: 3 ● Let us know ASAP if you haven't heard back from us by tomorrow morning. Where We Are Lexical Analysis Semantic Analysis Syntax Analysis IR Generation IR Optimization Code Generation Optimization Source Code Machine Code Review from Last Time class MyClass implements MyInterface { string myInteger; void doSomething() { int x; x = new string; x[5] = myInteger * y; } void doSomething() { } int fibonacci(int n) { return doSomething() + fibonacci(n – 1); } } Review from Last Time class MyClass implements MyInterface { string myInteger; void doSomething() { int x; x = new string ; x[5] = myInteger * y ; } void doSomething() { } int fibonacci(int n) { return doSomething() + fibonacci(n – 1); } } Interface not declared Wrong type Variable not declared Can't multiply strings Can't redefine functions Can't add void No main function Review from Last Time class MyClass implements MyInterface { string myInteger; void doSomething() { int x; x = new string ; x[5] = myInteger * y ; } void doSomething() { } int fibonacci(int n) { return doSomething() + fibonacci(n – 1); } } Wrong type Variable not declared Can't multiply strings Can't redefine functions Can't add void No main function Review from Last Time class MyClass implements MyInterface { string myInteger; void doSomething() { int x; x = new string ; x[5] = myInteger * y ; } void doSomething() { } int fibonacci(int n) { return doSomething() + fibonacci(n – 1); } } Wrong type Variable not declared Can't multiply strings Can't add void No main function Review from Last Time class MyClass implements MyInterface { string myInteger; void doSomething() { int x; x = new string ; x[5] = myInteger * y ; } void doSomething() { } int fibonacci(int n) { return doSomething() + fibonacci(n – 1); } } Wrong type Can't multiply strings Can't add void No main function Review from Last Time class MyClass implements MyInterface { string myInteger; void doSomething() { int x; x = new string ; x[5] = myInteger * y ; } void doSomething() { } int fibonacci(int n) { return doSomething() + fibonacci(n – 1); } } Wrong type Can't multiply strings Can't add void What Remains to Check?...
View Full Document

This document was uploaded on 07/18/2011.

Page1 / 140

090_Type_Checking - Type- Checking Announcements ●...

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

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