Spring 2017

Grace Hopper in 1952



Projects and Labs

  • Most of the labs feed into the major projects. Get started by looking at Our Language Grammar. Also have a look at the example resources to get you started in TypeScript or JavaScript.
    • Lab 0: Development Tooling and Build Documentation (for TypeScript, JavaScript, Swift, ML, OCAML, Haskell, or whatever you chose to use for your project)
  • Project One - Build an interesting lexer.
    • Lab 1: Making tokens with your Lexer
    • Lab 2: More token making, now with Finite Automata
  • Project Two - Build an interesting parser and CST.
    • Lab 3: Turning tokens into sentences with your Parser
    • Lab 4: Analyzing Grammars
    • Lab 6: (partial) Building Syntax Trees both Concrete and Abstract
  • Project Three - Adding an AST and Semantic Analysis.
    • Lab 5: Symbol tables and you (and your compiler)
    • Lab 6: (partial) Building Syntax Trees both Concrete and Abstract
    • Lab 7: Semantic Analysis: Checking scope and type
  • Project Four - A full compiler, with 6502a code generation.



Wirth's original Pascal compiler on DEC tape


Past Project Hall of Fame

JavaScript or TypeScript projects only. There have been some fantastic projects in Scala, C++, Python, and other languages, but they (obviously) will not execute in a web browser.
I reserve the copyright for all parts of my courses. Commercial reproduction of any course material, including lecture notes taken by students, without my EXPRESS WRITTEN consent, is prohibited. Seriously.