In-class Examples List
CS 335
Programming Languages
Spring 2011
Last modified: Friday, May 6, 2011
Important Notes:
- This is merely a selection of files and examples, most of which were
mentioned or used in the class. It is not a
comprehensive
list, nor are all lectures included. Formatting is generally
minimal.
- Week 15, Lecture 2, May 6, 2011 - End-of-Semester Wrap-Up and
Final Exam Review
- Week 14, Lecture 1, April 26, 2011 - A few words on Control Flow
- Week 13, Lecture 2, April 21, 2011 - Intro to Smalltalk-80/Squeak, part
3
- Week 13, Lecture 1, April 19, 2011 - Intro to Smalltalk-80/Squeak, part
2
- Week 12, Lecture 2, April 14, 2011 - Intro to Smalltalk-80/Squeak
- Some of my favorite Smalltalk/Squeak-related resources so far:
-
335lect12-2-projected.txt - projected notes from
lecture (non-PDF)
-
335lect12-2-workspace.txt - pasted contents of
Squeak workspace window from lecture, with the print-it values
of each expression included
- Week 12, Lecture 1, April 12, 2011 - Some Classic Parameter
Passing Methods
- Week 10, Lecture 1, March 29, 2011 - A couple of Prolog
tidbits, and discussion of object lifetimes, what is a
symbol table, storage allocation mechanisms, heap storage
allocation in particular, manual memory management and
garbage collection, and the beginning of a discussion about how
heap storage can be reclaimed
- Week 9, Lecture 2, March 25, 2011 - Intro to Logic Programming and
Prolog, part 4
- Week 9, Lecture 1, March 23, 2011 - Intro to Logic Programming and
Prolog, part 3
- Week 7, Lecture 2, March 3, 2011 - Intro to Logic Programming
and Prolog, part 2
- Week 7, Lecture 1, March 1, 2011 - Intro to Logic Programming
and Prolog, part 1
- Several Prolog references I like (additions welcome):
- J. R Fisher's Prolog tutorial, Cal-Poly Pomona,
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/pt_framer.html
- Adventure in Prolog, a game-oriented Prolog tutorial,
http://www.amzi.com/AdventureInProlog/ - (thanks
to D. Powell!)
- Ch. 13, MacLennan, "Principles of Programming Languges"
3rd Edition, Oxford University Press, 1999, (course
text)
- Ch. 11, Scott, "Programming Language Pragmatics III",
3rd Edition, Morgan Kaufman, 2009, available through
the HSU Library's Safari subscription
- Clocksin and Mellish, "Programming in Prolog",
Springer-Verlag, 1981 (the classic Prolog reference)
-
projected text (in tagged PDF)
-
rainy.pl - our first Prolog knowledge base
-
rainy-kb-example.txt - saved SWI-Prolog session
writing queries/goals to try to prove using rainy.pl
-
weather.pl - our second Prolog knowledge base,
featuring a rule/complete Horn clause
-
weather-kb-example.txt - saved SWI-Prolog session
writing queries/goals to try to prove using weather.pl
-
greek1.pl - another Prolog knowledge base
-
greek1-kb-example.txt - saved SWI-Prolog session
writing queries/goals to try to prove using greek1.pl
- Week 6, Lecture 2, February 24, 2011 - some discussion of
names, bindings, and scopes
- Week 5, Lecture 2, February 17, 2011 - Review for Exam 2
- Week 5, Lecture 1, February 15, 2011 - More on Lisp/Scheme -
more on lambda expressions and higher-order functions,
a little bit on currying, and mention of Scheme's
read
function for interactive input
- Week 4, Lecture 2, February 10, 2011 - More on Lisp/Scheme -
including higher-order functions, some functional programming
model discussion, and just starting lambda (anonymous function)
discussion (day 4)
- Week 4, Lecture 1, February 8, 2011 - More on Lisp/Scheme -
including more on car/cdr/cons, cons cells, and more (day 3)
- Week 3, Lecture 2, February 3, 2011 - Intro to Lisp/Scheme (day 2)
- Week 3, Lecture 1, February 1, 2011 - little more on
formal languages, and started discussing LISP (day 1)
- Week 2, Lecture 2, January 27, 2011 - intro to formal languages:
mostly Backus-Naur Form (BNF), also derivation trees
- Week 2, Lecture 1, January 25, 2011 - intro to formal languages:
mostly context-free grammars (CFG's)
- Week 1, Lecture 2, January 19, 2011 - intro to formal languages:
regular expressions (RE)
- Week 1, Lecture 1, January 17, 2011 - course intro
Back to Course Home Page