Programming Language (CS 550)
Announcments
Lectures
Programs
Course Resources
Assignments and Solutions
Grading Policy
- Course Description
Covers basic concepts of the design and implementation of programming languages,
including data representation and types, functions, sequence control,
environments, block structure, subroutines and coroutines, storage management.
Emphasizes language features and implementation, not mastery of any particular
languages.
- Audience
-
This is a core course required by all graduate Computer Science students and
is an elective for graduate Software Engineering students.
The course is available to other students with sufficient programming
experience (see prerequisites) who have an interest in programming languages
(e.g. Information Systems, Computer Engineering, etc.).
- Course Themes
- Evaluation and implementation of of programming languages
- Tools for describing and analyzing languages, including syntax,
semantics, and pragmatics
- Tools to design new languages
- Programming Paradigms (imperative, functional, logic,
object-oriented
- Implementation of programming languages
- Course Objectives
- Be able to compare and evaluate different programming languages and
implement different programming constructs and features
(e.g. variables, loops, procedures, dynamic memory).
- Be able to formally specify the syntax and semantics of programming
languages.
- Be able to write a parser and a scanner.
- Be able to write a translator to convert from one language to
another.
- Be able to describe the semantics of and implement an interpreter and
compiler for a simple programming language.
- Be comfortable with the major programming paradigms and be able to use
at least one language from each paradigm.
- Course Benefits
- Easier to express algorithmic ideas
- Better able to formally express concepts
- Improved ability to select appropriate languages
- Easier to learn new languages
- Understand the significance and impact of language choices and
constructs
- Able to design new languages (little languages, interface
specifications, protocols)
- Prerequisites
-
Assumes familiarity with the basics of logic (predicate calculus),
recursion and induction, automata, and grammars. All students should
be proficient with at least one object-oriented programming language
(e.g. java, C++), and it would be helpful to have seen at least two different
programming languages.
- Instructor
- Jeremy Johnson
Office: University Crossings 100C
phone:
e-mail: jjohnson AT cs DOT drexel DOT edu
office hours: R 4-6 and online T 7-8, additional hours by appointment.
- TA
- Haritha Haridas
Office: University Crossings 147
phone:
e-mail: AT drexel DOT edu
office hours: W 4-6 and R 2-4, additional hours by appointment.
- Meeting Time
- Thursday 6-9:00 in Korman 102a and online.
The online and in class versions
of the course will be identical (in class lectures will be recorded and posted
on webct and use of online discussions will be required by everyone).
- Course Discussion Groups
- BbVista will be used for class discussion and announcements - check regularly
-
Please use this list for questions and discussions related to the course.
If you know the answer to someone's question, please feel free to jump in,
as long as well it is not an answer to a homework problem. I will moderate
the list so that frivolous mail and spam is not forwarded.
-
Textbook
-
Kennet C. Louden, Programming Languages: Principles and Practice, 2nd Ed., Thomson Brooks/Cole, 2003.
- In addition to the official text book listed below, a variety of resources
for different programming languages will be made available and should be
consulted. Also all students must have access to the necessary compilers
and interpreters for the different languages discussed. All required
compilers/interpreters will be made available on the department of Computer
Science computers. Many, if not all, are publicaly available.
Topics
- Week 1: Parsing and Grammars (ch. 4)
- Week 2: Mini Language Interpreter (ch. 5)
- Week 3: List Processing, Memory Management,
Garbage Collection (ch. 7)
- Week 4: Functional Programming (ch. 11 and SICP)
- Week 5: Logic Programming and Query Languages (ch. 12 and SICP)
- Week 6: Mini Language Compiler (ch. 5 and 13)
- Week 7: Lambda Calculus, Environments, and a Scheme Interpreter
(ch. 11 and SICP)
- Week 8: Type checking and ML (ch. 6 and 11)
- Week 9: Denotational Semantics (ch. 13 and SICP)
- Week 10: Axiomatic Semantics (ch. 13)
Grading
- Homework and participation (50%)
- Midterm (25%)
- Final Exam (25%)
Students will be assigned to groups (4 students each - members may come
from either the in class or online sections). Each group
will be responsible for weekly homework (8 total), and each member
will take the lead on two of the assignments. Peer grading will be
used for group participation and discussion groups will be set up
in webct for each group and all members are expected to participate
in the discussions and contribute to every assignment. Doing all of
the assignments will be essential for the exams.
Resources
-
Reference Books
- John R. Levine, Tony Mason, Doug Brown,
Lex & Yacc,
2nd/updated edition (October 1992), O'Reilly & Associates. An
online copy of this book is available through Drexel's library
(safari).
- Alfred V. Aho and Jeffrey D. Ullman,
Foundations of Computer Science - C Edition,
W. H. Freeman and Company, 1995.
- list reference books here.
-
Web Pages
- Ken Louden's Web resources for the text Programming Languages.
- [SICP] Abelson and Sussman, Structure and Interepretation of Computer Programs.
- Graphviz - Graph Visualization Software.
- CUP Reference Manula - Parser generator for Java.
- PLY - Python Lex-Yacc.
- scheme
- MIT/GNU Scheme
- Lambda Calculus Tutorial
from Chris Barker at NYU.
Look Here for Important Announcements
Announcements
(Last updated Wed. April 4)
Lectures
This list is tentative and may be modified at the instructor's discretion.
- Lecture 1: Grammars and Parsing (ch. 4 of the text)
- Lecture 2: Mini Language Interpreter (ch. 5, 7, and 8 of the text)
- Lecture 3: Dynamic Memory Management and Garbage Collection (ch. 5.7, 8.5, and 11.1-3 of the text)
- Lecture 4: Functional Programming and Operational Semantics of Scheme (ch. 11 of the text and ch. 3 and 4.1-3 of SICP)
- Lecture 5: Mini Language Compiler (ch. 5.1-5, 7.1-3, 8.1-4)
- Lecture 6: Operational Semantics of scheme using Substitution (ch. 11 [lambda calculus] and ch. 3 of SICP [streams])
- Lecture 7: Logic Programming and a Simple Query Language (ch. 12 [logic programming] and ch. 4 of SICP [query language])
Programs and Worksheets
Assignments
- Assignment 1 - parsing,
parser generators, and recursive data structures (due Mon. April 14 at 9am).
- Assignment 2 - extending
the mini language to support lists (due Mon. April 21 at midnight).
- Assignment 3 - dynamic
memory allocation and garbage collection (due Mon. April 28 at midnight).
- Assignment 4 - support for
functional programming (due Thur. May 15 at midnight).
- Midterm Exam - Friday May 2 through Wed. May 7
- Assignment 5 - mini
language compiler (due Fri. May 23 at midnight).
- Assignment 6 - mini
language compiler ver. 2 (due Mon. June 2 at midnight).
- Extra Credit Assignment - object orineted mini language interpreter (due Wed. June 11 at midnight).
- Final Exam - Tue. June 2 (9am) through Fri. June 6 (9am) for graduating students and
Sat. June 7 (9am) through Fri. June 13 (9am) for non-graduating students.
Solutions
- Available for the class only through webct.
Created: 3/30/07 by jjohnson AT cs DOT drexel DOT edu