Chapter 4. The Groovy Language
In this chapter, we will conduct a whistle-stop tour of the Groovy language. We don't have the scope in this book to cover the whole language in a tutorial fashion, but by the end of the book, we will have covered most of the aspects of the language that you need to be able to write your own Groovy-based DSLs. For now, in this chapter, we will just touch on some of the main points that differentiate Groovy from its parent language—Java.
This chapter makes extensive use of Spock style test assertions throughout. If you have not already read Chapter 3, Essential Groovy DSLs, I would strongly suggest you at least read the Spock tests section of that chapter and familiarize yourself with the unique Spock syntax.
Introducing ...
Get Groovy for Domain-specific Languages - 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.