COMS W4115 Programming Languages and Translators Fall 2006 |
Class meets Tuesdays and Thursdays, 11:00 AM - 12:15 PM in 1127 Mudd.
Name | Office hours | Location | |
---|---|---|---|
Prof. Stephen A. Edwards | sedwards@cs.columbia.edu | T 3-4, W 4-5 | 462 CSB |
Jia Zeng | jia@cs.columbia.edu | F 2-4 | 472 CSB |
Ty Yano | ty2142@columbia.edu | M 4-5, Th 6:30-7:30 | TA Room, 1st floor Mudd |
Deepti Gupta | dag2132@columbia.edu | T 3:30-5:30 | TA Room, 1st floor Mudd |
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.
Java fluency: You will be writing a large Java program and must know the language well.
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.
Date | Lecture | Notes | Reading | Due | |
---|---|---|---|---|---|
September 5 | Intro. to Languages | Ch. 1, 2 | |||
September 7 | Language Design | ||||
September 12 | Language Processors | Ch. 2 | |||
September 14 | Scripting Languages | Ch. 2 | |||
September 19 | Al Aho on Awk | notes | |||
September 21 | Syntax and Parsing | Ch 3, 4 | |||
September 26 | " | White Paper | |||
September 28 | Getting it right | ||||
October 3 | ANTLR | Ch. 4 | |||
October 5 | ASTs | Ch. 4, 5 | |||
October 10 | Small Examples | App. A | HW1 | ||
October 12 | Names, Scope, and Bindings | Ch. 6 | |||
October 17 | Control-flow | Ch. 6 | |||
October 19 | " | LRM | |||
October 24 | Midterm review | ||||
October 26 | Midterm | ||||
October 31 | Types | Ch. 6 | |||
November 2 | " | ||||
November 7 | Election Day | ||||
November 9 | Code Generation | Ch. 6, 7, 8 | |||
November 14 | Functional Programming | ||||
November 16 | " | ||||
November 21 | |||||
November 23 | Thanksgiving Holiday | ||||
November 28 | Guest lecture: Microsoft's Jim Miller | Where has my compiler gone? | |||
November 30 | Review for final | HW2 | |||
December 5 | Logic Programming | ||||
December 7 | Final Exam | ||||
December 19 | Project reports due |
Alfred V. Aho, Monica Lam, Ravi Sethi, and Jeffrey D. Ullman. |
Michael L. Scott. |
|
Andrew W. Appel. |
|
Steven S. Muchnick |
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 ANTLR | |
An ANTLR implementation of the little language from Appendix A of the second edition of the Dragon Book. | |
An ANTLR example illustrating how to display ASTs. Run SimpLexer.g through ANTLR, compile the generated .java files along with Main.java and run "java Main < test.txt" to both print the AST in a human-readable way and display it in a window. | |
The ANTLR homepage | |
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. | |
Source for the very successful MX language project from Spring 2003. | |
Other projects from Spring 2003 | |
Other projects from Fall 2003 |
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 |
zx81basic:
A version of BASIC for the ZX81
(JZ)
Final Report Carlos Alustiza |
ACL:
Automated Command Line
(SE)
Whitepaper LRM Final Report Cheow Goh |
aTCl:
Automatic Text Categorization/Classification Language
(TY)
Whitepaper LRM Final Report Jawwad Sultan |
bggl:
Board Game Generator Language
(DG)
Whitepaper LRM Final Report Slides Matthew Chu Steven Moncada Hrishikesh Tapaswi Vitaliy Shchupak |
Bright:
A Secure Internet Programming Language
(JZ)
Whitepaper LRM Lemuel Fan |
DSPL:
Digital Signal Processing Language
(SE)
Whitepaper LRM Final Report Project Files David Lariviere Jeffrey Cropsey Michael Lynch Varun Maithel Varun Mehta |
EasyQL:
Database manipulation language
(DG)
Whitepaper LRM Final Report Slides Kangkook Jee Kishan Iyer Smridh Thapar Saahil Peerbhoy |
empath:
A Modeling Language for Living Beings
(JZ)
Whitepaper LRM Final Report Slides Jeremy Posner Nalini Kartha Sampada Sonalkar William Mee |
gal:
A rapid prototyping language for graph algorithms
(TY)
Whitepaper LRM Final Report Albert Winters Shepard Saltzman Athar Abdul-Quader Oren Benjamin Yeshua |
GECL:
Google Earth Customization Language
(JZ)
Whitepaper LRM Final Report Project Files Carlos Icaza-Estrada Wei-Chung Hsu Tz-Yang Tang Bhashinee Garg |
G!:
A programming language for 2D games
(TY)
Whitepaper LRM Final Report Slides Divya Arora Steve Lianoglou Rachit Parikh Amortya Ray |
gpa:
General Purpose to Assembly Language
(SE)
Whitepaper LRM Final Report Michael Pierorazio Juan Gutierrez Vincenzo Zarrillo Dmitry Gimzelberg |
ipl:
Image Processing Language
(DG)
Whitepaper LRM Final Report Slides Jianning Yue Wookyun Kho Young Jin Yoon |
mars:
CodeName: MARS (Music Mixing Language)
(DG)
Whitepaper LRM Final Report Slides Michael Sorvillo Aaron Fernandes Ritika Virmani Swapneel Sheth |
Mirage:
A Graphical and Parallel Sketching Language
(SE)
Whitepaper LRM Final Report Abhilash Itharaju Ming Liao Nalini Vasudevan Peili Zhang |
rll:
Reinforcement Learning Language
(SE)
Whitepaper LRM Final Report Michael Groble |
R:
A Scripting language for a call routing engine
(TY)
Whitepaper LRM Final Report Rajiv Kumar |
SGDL:
School Geometry Description Language
(TY)
Whitepaper LRM Final Report Sanjay Kumar |
simplex:
Syntax for International Monetary, Property, and Liquidity Exchange
(SE)
Whitepaper LRM Final Report Slides Steven Chen Gilbert Hom Kelvin Jiang Eric Zhang |
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.