Programming Languages and Translators
Summer 2010 (CVN)
|Prof. Stephen A. Edwardsfirstname.lastname@example.org|
The goal of PLT is to teach you both about the structure of computer programming languages and the basics of implementing compilers for such languages.
The course will focus mostly on traditional imperative and object-oriented languages, but will also cover functional and logic programming, concurrency issues, and some aspects of scripting languages. Homework and tests will cover language issues. You will design and implement a language of your own design in a semester-long group project.
While few of you will ever implement a full commercial compiler professionally, the concepts, techniques, and tools you will learn have broad application.
COMS W3157 Advanced Programming: You will be dividing into teams to build a compiler, so you need to have some idea how to keep this under control. Quick test: you need to know about Makefiles and source code control systems.
COMS W3261 Computability and Models of Computation: You will need an understanding of formal languages and grammar to build the parser and lexical analyzer. Quick test: you must know about regular expressions, context-free grammars, and NFAs.
|May 24||Intro. to Languages||Ch. 1, 2|
|May 26||The C Language Reference Manual|
|May 31||Scripting Languages||Ch. 2|
|June 2||Introduction to O'Caml|
|June 9||Language Processors||Ch. 2|
|June 11||Syntax and Parsing||Ch 3, 4|
|June 16||Getting it right||HW1|
|June 18||Ocamlyacc and ASTs||Ch. 4, 5|
|June 21||Names, Scope, and Bindings||Ch. 6||HW2|
|June 25||Small Examples||App. A||LRM|
|June 28||Midterm review|
|July 7||Types||Ch. 6|
|July 12||Control-flow||Ch. 6|
|July 16||Code Generation||Ch. 6, 7, 8|
|July 19||Logic Programming|
|July 21||Functional Programming||HW3|
|July 26||Review for final|
|August 2||Final Exam|
|August 13||Project reports due|
Alfred V. Aho, Monica Lam, Ravi Sethi, and Jeffrey D. Ullman.
Michael L. Scott.
Andrew W. Appel.
Lawrence C. Paulson
Steven S. Muchnick
|The Caml Language Homepage. Compiler downloads and documentation. Start here.|
|The Objective Caml System. Documentation and User's Manual for the whole system, including documentation for ocamllex, ocamlyacc, ocamldep, ocamldebug, and all the standard libraries.|
|Jason Hickey, Introduction to Objective Caml. One of my favorite books on O'Caml.|
|Emmanuel Chailloux, Pascal Manoury, and Bruno Pagano, Developing Applications with Objective Caml. An online book translated from the French (O'Reilly).|
|Objective CAML Tutorial|
|O'Caml source for the four-function calculator.|
|O'Caml source and test cases for the microc language.|
The focus of 4115 is the design and implementation of a little language. You will divide into teams and design the goals, syntax, and semantics of your language, and implement a compiler for your language.
Exception: CVN students will do the project individually.
This is a critical part of the project and will be a substantial fraction of the grade.
Include the following sections:
|A two-page introduction to the CVS version control system. I strongly suggest you keep your project under some version control system.|
|A sample final report by Chris Conway, Cheng-Hong Li, and Megan Pengelly. It includes the white paper, tutorial, language reference manual, project plan, architectural design, and testing plan. It does not include the lessons learned and code listings sections, although it should.|
|The Java white paper from Sun Microsystems|
|C# Introduction and Overview|
|Dennis M. Ritchie, C Reference Manual|
|Kernighan & Ritchie, The C Programming Language|
|The C Language Reference Manual (DEC)|
|The C Language Reference Manual (SGI)|
|The C Language Reference Manual (Microsoft)|
|Stroustrup, The C++ Programming Language|
|The Java Language Specification|
|The C# Language Specification|
|Aho, Kernighan, and Weinberger, The AWK Programming Language|
A Musical Notation Language
Proposal Final Report Project Files
Simple Text Processing Language
Proposal LRM Final Report Project Files
Cascading Style Sheet Generator
Proposal LRM Final Report Project Files
|40 % Project|
|20 % Midterm|
|30 % Final|
|10 % Homework|
You will collaborate with your own small group on the programming project, but you may not collaborate with others on homeworks. Groups may share ideas about the programming assignments, but not code. Any two groups found submitting similar code will receive zero credit for the whole assignment, and repeat offenses will be referred to the dean. See the Columbia CS department academic policies for more details.
CVN faculty center