Groovy for Domain-Specific Languages

Språk
Engelsk
Format
Kategori

Fakta og dokumentar

In Detail

You may already be aware that the Java virtual machine runs on everything from the largest mainframe to the smallest microchip and supports almost every conceivable application. What you may not realize is that to develop software in some of these scenarios requires a targeted, single purpose language, a Domain Specific Language. The popular scripting language Groovy can be used to create a Domain Specific Language that can run directly on the JVM alongside regular Java code. This comprehensive tutorial will take you through the design and development of Groovy-based Domain Specific Languages. It is a complete guide to the development of several mini-DSLs with a lot of easy-to-understand examples. This book will help you to gain all of the skills needed to develop your own Groovy-based DSLs, as it guides you from the basics through to the more complex meta-programming features of Groovy. The focus is on how the Groovy language can be used to construct domain-specific mini-languages.

Practical examples are used throughout to de-mystify the seemingly complex language features and to show how they can be used to create simple and elegant DSLs. The examples include a quick and simple Groovy DSL to interface with Twitter. The book concludes with a chapter focusing on integrating Groovy-based DSLs in such a way that the scripts can be readily incorporated into the readers' own Java applications. The overall goal of this book is to take Java developers through the skills and knowledge they need to start building effective Groovy-based DSLs to integrate into their own applications.

This practical guide will teach you how to build Domain Specific Languages in Groovy that integrate seamlessly with your Java applications

Approach

This book is a practical tutorial, walking the reader through examples of building DSLs with Groovy covering meta-programming with Groovy. Some complex concepts are covered in the book but we go through these in a clear and methodically way so that readers will gain a good working knowledge of the techniques involved.

Who this book is for

This book is for Java software developers who have an interest in building domain scripting into their Java applications. No knowledge of Groovy is required, although it will be helpful. The book does not teach Groovy, but quickly introduces the basic ideas of Groovy. An experienced Java developer should have no problems with these and move quickly on to the more involved aspects of creating DSLs with Groovy. No experience of creating a DSL is required. The book should also be useful for experienced Groovy developers who have so far only used Groovy DSLs such as Groovy builders and would like to start building their own Groovy-based DSLs.

© 2010 Packt Publishing (E-bok): 9781847196910

Utgivelsesdato

E-bok: 1. juni 2010

Andre liker også ...

Derfor vil du elske Storytel:

  • Over 700 000 bøker

  • Eksklusive nyheter hver uke

  • Lytt og les offline

  • Kids Mode (barnevennlig visning)

  • Avslutt når du vil

Det mest populære valget

Unlimited

For deg som vil lytte og lese ubegrenset.

219 kr /måned
  • 1 konto

  • Ubegrenset lytting

  • Lytt så mye du vil

  • Over 700 000 bøker

  • Nye eksklusive bøker hver uke

  • Avslutt når du vil

Prøv gratis + 50 % i 2 måneder
Familiens førstevalg

Family

For deg som ønsker å dele historier med familien.

Fra 289 kr/måned
  • 2-3 kontoer

  • Ubegrenset lytting

  • Lytt så mye du vil

  • Over 700 000 bøker

  • Nye eksklusive bøker hver uke

  • Avslutt når du vil

2 kontoer

289 kr /måned
Prøv gratis + 50 % i 2 måneder

Basic

For deg som lytter og leser av og til.

149 kr /måned
  • 1 konto

  • 20 timer/måned

  • Lytt opp til 20 timer per måned

  • Over 700 000 bøker

  • Nye eksklusive bøker hver uke

  • Avslutt når du vil

Prøv gratis

Student

Verifiser deg med din student-ID og få halv pris hele livet.

74.50 kr /måned
  • 1 konto

  • 20 timer/måned

  • Lytt opp til 20 timer per måned

  • Studentpris med 50 % rabatt hele livet!

  • Over 700 000 bøker

  • Nye eksklusive bøker hver uke

  • Avslutt når du vil

Prøv gratis + halv pris hele livet

Lytt og les ubegrenset

Kos deg med ubegrenset tilgang til mer enn 700 000 titler.

  • Lytt og les så mye du vil
  • Utforsk et stort bibliotek med fortellinger
  • Over 1500 serier på norsk
  • Ingen bindingstid, avslutt når du vil
Prøv gratis
NO - Details page - Device banner - 894x1036