Chapter 19. Domain-specific languages

This chapter covers

  • Understanding domain-specific languages (DSLs)
  • Writing DSLs in Groovy
  • Creating readable and expressive languages
  • Testing, securing, and providing good error reporting when creating DSLs

The limits of my language are the limits of my world.

Ludwig Wittgenstein

Domain-specific languages are languages tailored toward representing a particular domain of knowledge. Proponents of development methodologies suggest that what leads to success or failure of a project is the quality of communication and a common goal of producing software that delivers on promises of solving a particular domain problem.

Languages are at the root of any kind of communication and involve two interlocutors. A ...

Get Groovy in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.