CS 360
Winter 2017
Programming Language Concepts
CS 360-001 Tuesday/Thursday 15:30-16:50 (Rush 9)
CS 360-002 Tuesday/Thursday 14:00-15:20 (Rush 9)
CS 360-003 Tuesday 18:30-21:20 (Science Center 326, 3401 Market)
Instructor: |
Geoffrey Mainland mainland+cs360@drexel.edu Office: University Crossings 106 Office hours: Mondays 4pm–7pm; Thursdays 5pm–6pm. |
Teaching Assistant: |
Xiao Han CLC office hours: Monday 2pm–4pm; Friday 3pm–5pm |
The final will cover material from the entire course. However, the midterm covered material up to but not including Prolog (the second lecture of week 5), so you can expect that the final exam will focus on material not covered by the midterm.
You may be asked to write some small functions in Scheme and/or Haskell. You will not lose points for minor syntactic errors.
You may bring a single, hand-written, two-sided, 8.5” x 11” sheet of notes to the exam. This sheet must have your name on it, and it will be collected with your exam.
No electronic devices may be used during the exam. Please ensure that all electronic devices are out of sight during the exam. You may not listen to music on your phone or any other device during the exam.
Lambda calculus. Know the syntactic structure of the lambda calculus and understand how to evaluate lambda calculus terms. Understand the different ways in which one could define an operational semantics for the lambda calculus.
Prolog. Understand Prolog’s execution model.
Nondeterministic Finite Automata. Understand how to simulate an NFA and know how to convert a regular expression into an NFA.
Know what it means for a value to be a fixed point of a function.
Denotational semantics. Understand how to construct and use a denotational semantics for a simple language.
Operational semantics. Understand how to construct and use an operational semantics for a simple language.
Axiomatic semantics. Understand how to define soundness and completeness of a logical system. These are properties of a logical system relative to a semantics.
Functors. Understand how to define a Functor
instance for a data type.
Monads. Understand the monad abstraction and how return
and bind (>>=)
work.
Understand the difference between lexing and parsing. Understand why regular expressions are used for lexing and context-free grammars are used for parsing.
Understand why CFGs are more powerful than regular expressions.
Understand how to eliminate left recursion in a grammar and how to left factor a grammar.
Understand First, Follow, and Nullable.
Be able to write a simple recursive-descent parser.