Compiler Construction bio photo

Compiler Construction

Twitter Github

Edit on GitHub

Lecture 3: Syntactic Editor Services

In this lecture we take a further look at declarative syntax definition, with the specification of lexical syntax and the desugaring of context-free syntax and lexical syntax into a core grammar formalism. Further we study applications of syntax definitions in various syntactic editor services, tools that are applied by integrated development environments (IDEs) to assist programmers, such as syntax checking, syntax coloring/highlighting, formatting, and code completion. In particular, we look into how such tools can be automatically and generically be generated from syntax definitions.


  • lexical syntax, layout, whitespace, comments
  • syntactic editor services
  • pretty-printing, template productions
  • syntactic completion
  • error recovery


Compiler Construction | Lecture 3 | Syntactic Editor Services from Eelco Visser

Reading material