Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Groovy for Domain-Specific Languages, Second Edition

You're reading from   Groovy for Domain-Specific Languages, Second Edition Extend and enhance your Java applications with domain-specific scripting in Groovy

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781849695404
Length 386 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Fergal Dearle Fergal Dearle
Author Profile Icon Fergal Dearle
Fergal Dearle
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Introduction to DSLs and Groovy 2. Groovy Quick Start FREE CHAPTER 3. Essential Groovy DSLs 4. The Groovy Language 5. Groovy Closures 6. Example DSL – GeeTwitter 7. Power Groovy DSL Features 8. AST Transformations 9. Existing Groovy DSLs 10. Building a Builder 11. Implementing a Rules DSL 12. Integrating It All Index

A game DSL – goals

  • The first goal for this DSL was to get beyond the console-bound apps that we had been building. Something that could work in conjunction with a web-based UI would be good but ideally something that would allow a mobile app as the UI would be best.
  • We needed to build on the existing skills that the kids had acquired.
  • There would need to be a very simple interaction between the game logic on the one hand and the user interface on the other. The kids would need to be able, in time, to work on both aspects.
  • We used the Cloud9 online web-based IDE https://c9.io/. So we needed a solution that would run on a remote workspace. The mentors typically used a premium workspace account but the students worked on free accounts, which limited their VMs to 512 MB RAM and 1 GB disk. Ideally, we wanted to be able to run the environment and compile the DSL code on the student's free accounts.

Architecture and technology choices

We needed a user interface technology that would be...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image