Chapter 4. Building DSLs

In this chapter

  • How to build an application based on DSLs
  • Creating the Message-Routing DSL
  • Creating the Authorization DSL
  • Creating the Quote-Generation DSL

In this chapter, we’ll look at how to design an application that uses DSLs to do much of its work. We’ll cover several of those DSLs in detail (and leave others for later), and we’ll explore how to build, instantiate, and execute those DSLs in the context of our application. We’re going to focus on two types of DSLs, the ones most commonly used in business applications: technical DSLs and business DSLs.

Technical DSLs are generally used as bootstrapping and configuration mechanisms to make it easier to modify a part of a system. In general, those DSLs enable ...

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.