cs-4400-sp26

Lecture 1: CalcLang

Code:

Lecture outline

Exercises/TPS

  1. Where are some places that ambiguity shows up in surface syntax?
  2. Write the AST for the expression ((2+1) * 3)
  3. Write Plait defns of type CalcLang to represent
    1. 1 + 2
    2. (2 + 1) * 3
  4. How could we extend the language with strings? (write new datatype and example term)

Bibliography