Chapter 6. Advanced complier extensibility approaches

In this chapter

  • Cracking open the Boo compiler
  • Quasi-quotation and meta-methods
  • Extending the compiler
  • Changing the language

Boo offers a rich set of extensibility mechanisms that you can use. We’ll look at them for a couple of reasons: to make sure you understand what is possible, and to expose you to the way they can be used to create easily readable, intuitive, and natural DSLs.

But before we can start talking about compiler extensibility, we need to look at the compiler itself and define some common terms. A lot of Boo’s capabilities are exposed in ways that only make sense if you understand these concepts. I’ll assume compilers aren’t your area of expertise and make sure that you ...

Get DSLs in Boo: Domain-Specific Languages in .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.