Book Image

Groovy for Domain-Specific Languages, Second Edition

By : Fergal Dearle
Book Image

Groovy for Domain-Specific Languages, Second Edition

By: Fergal Dearle

Overview of this book

Table of Contents (20 chapters)
Groovy for Domain-specific Languages Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Introduction to DSLs and Groovy
Index

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.