groovy for domain-specific languages

7
Groovy for Domain- Specific Languages Yaroslav Yermilov Senior Software Engineer, EPAM Systems

Upload: yaroslav-yermilov

Post on 18-Jul-2015

121 views

Category:

Software


2 download

TRANSCRIPT

Page 1: Groovy for Domain-Specific Languages

Groovy for Domain-

Specific Languages

Yaroslav Yermilov

Senior Software Engineer, EPAM Systems

Page 2: Groovy for Domain-Specific Languages

About DSL

A domain-specific language (DSL)

is a computer language specialized

to a particular application domain.

This is in contrast to a general-

purpose language (GPL), which is

broadly applicable across domains,

and lacks specialized features for a

particular domain.

Page 3: Groovy for Domain-Specific Languages

Why DSL?

● The Open Closed Principle

● Help yourself

● Involve stakeholder

Page 4: Groovy for Domain-Specific Languages

About Groovy

Page 5: Groovy for Domain-Specific Languages

Why Groovy?

● JVM

● removing boilerplate

● closures

● operator overloading

● metaprogramming

● AST-transformations

● much more

Page 6: Groovy for Domain-Specific Languages

https://github.com/yermilov/groovy-dsl

Page 7: Groovy for Domain-Specific Languages

Further reading