Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Groovy for Domain-Specific Languages, Second Edition

You're reading from  Groovy for Domain-Specific Languages, Second Edition

Product type Book
Published in Sep 2015
Publisher
ISBN-13 9781849695404
Pages 386 pages
Edition 1st Edition
Languages
Author (1):
Fergal Dearle Fergal Dearle
Profile icon Fergal Dearle

Table of Contents (20) Chapters

Groovy for Domain-specific Languages Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1. Introduction to DSLs and Groovy 2. Groovy Quick Start 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 familiar to the...

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 €14.99/month. Cancel anytime}