Groovy for Domain-specific Languages - Second Edition
Preface [ xii ] Conventions In this book, you will find a number of text styles that distinguish between different kinds of info ...
Preface [ xiii ] Reader feedback Feedback from our readers is always welcome. Let us know what you think about this book—what yo ...
Preface [ xiv ] Piracy Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take ...
[ 1 ] Introduction to DSLs and Groovy It has been over 10 years since my first contact with the Groovy language. The occasion wa ...
Introduction to DSLs and Groovy [ 2 ] One of the big benefits of Groovy is how its dynamic features support the development of d ...
Chapter 1 [ 3 ] The Java platform has a multitude of mini DSLs in the form of XML config files for configuration of everything f ...
Introduction to DSLs and Groovy [ 4 ] The IOCCC runs to this day. The point of the contest is to write valid but impenetrable C ...
Chapter 1 [ 5 ] Spreadsheets and 4GLs Programs such as Lotus 1-2-3 and its precursor VisiCalc revolutionized people's view of wh ...
Introduction to DSLs and Groovy [ 6 ] The thrust of language-oriented programming is that we should all be going beyond exploiti ...
Chapter 1 [ 7 ] CPI developed a process control system, which was primarily sold to chemical and pharmaceutical industries. It w ...
Introduction to DSLs and Groovy [ 8 ] When devising a DSL for a particular domain, we should always consider the stakeholders wh ...
Chapter 1 [ 9 ] EXTOL circumvented this problem by having its own syntax-sensitive editor. Users edited their EXTOL scripts from ...
Introduction to DSLs and Groovy [ 10 ] Operator overloading Some general-purpose languages, such as C++, Lisp, and now Groovy, h ...
Chapter 1 [ 11 ] The preceding example illustrates what could be considered as a classic case of obfuscation in C++. If your use ...
Introduction to DSLs and Groovy [ 12 ] On top of this standard VM, the list of APIs that have been built extends into every conc ...
Chapter 1 [ 13 ] Groovy language features Groovy adds a number of unique features that distinguish it from Java and allow develo ...
Introduction to DSLs and Groovy [ 14 ] This produces the following output: [fileUnder: Software Development, title: Groovy for D ...
Chapter 1 [ 15 ] Groovy operator overloading Operator overloading is a powerful feature of the C++ language. Java inherited many ...
Introduction to DSLs and Groovy [ 16 ] Method call parentheses are also optional when the method being invoked has passed some p ...
Chapter 1 [ 17 ] In Groovy markup, this XML can be generated simply with the following code fragment: def builder = new groovy.x ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf