Difference between revisions of "CS422 - Programming Language Design (Spring 2018)"
Line 26: | Line 26: | ||
'''''Exercise 1 (10 points):''''' Modify IMP (its Big-Step and its Small-Step SOS) to halt when a division-by-zero takes place, returning a configuration holding the state in which the division by zero took place. | '''''Exercise 1 (10 points):''''' Modify IMP (its Big-Step and its Small-Step SOS) to halt when a division-by-zero takes place, returning a configuration holding the state in which the division by zero took place. | ||
− | '''''Exercise 2 (10 points):''''' Add a variable increment construct, ++x (increment x and return the incremented value), to IMP: first add it to the formal BNF syntax, then to the Big-Step SOS, then to the type-system, and then to the Small-Step SOS. | + | '''''Exercise 2 (10 points):''''' Add a variable increment construct, <tt>++x</tt> (increment x and return the incremented value), to IMP: first add it to the formal BNF syntax, then to the Big-Step SOS, then to the type-system, and then to the Small-Step SOS. |
− | '''''Exercise 3 (10 points):''''' Add I/O constructs, <tt>read()</tt> and | + | '''''Exercise 3 (10 points):''''' Add I/O constructs, <tt>read()</tt> and <tt>print(AExp)</tt> to IMP: first add these to the formal BNF syntax (<tt>read()</tt> is an <tt>AExp</tt> construct and <tt>print(AExp)</tt> is a <tt>Stmt</tt> construct), then to the Big-Step SOS, then to the type-system, and then to the Small-Step SOS. |
'''''Exercise 4 (10 points):''''' Combine the three above: add division-by-zero halting, an increment construct, and the two I/O constructs to IMP. | '''''Exercise 4 (10 points):''''' Combine the three above: add division-by-zero halting, an increment construct, and the two I/O constructs to IMP. |
Revision as of 18:39, 26 January 2018
Students enrolled in this class are expected to check this web page regularly. Complete lecture notes will be posted here.
Course Description
CS422 is an advanced course on principles of programming language design. Major semantic approaches to programming languages will be discussed, such as structural operational semantics (various kinds), denotational semantics, and rewriting-based semantics. Programming language paradigms will be investigated and rigorously defined, including: imperative, functional, object-oriented, and logic programming languages; parameter binding and evaluation strategies; type checking and type inference; concurrency. Since the definitional framework used in this class will be executable, interpreters for the designed languages will be obtained for free. Software analysis tools reasoning about programs in these languages will also arise naturally. Major theoretical models will be discussed.
- Meetings: W/F 14:00 - 15:15, 1304 Siebel Center
- Credit: 3 or 4 credits
- Professor: Grigore Rosu (Office: SC 2110)
- Office hours: Held by Grigore Rosu in SC 2110; by appointment.
Lecture Notes, Useful Material
The links below provide you with useful material for this class, including complete lecture notes. These materials will be added by need.
- Introduction slides
- Structural Operational Semantics slides
- Book lecture notes on the IMP language, big-step SOS, and small-step SOS (you can skip the rewriting logic and Maude parts; comments welcome!): IMP-BigStep-SmallStep