๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

Implementing Domain Specific Languages with Xtext and Xtend

โœ Scribed by Lorenzo Bettini


Publisher
Packt Publishing
Year
2016
Tongue
English
Leaves
426
Edition
2nd
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Learn how to implement a DSL with Xtext and Xtend using easy-to-understand examples and best practices

About This Book

  • Leverage the latest features of Xtext and Xtend to develop a domain-specific language.
  • Integrate Xtext with popular third party IDEs and get the best out of both worlds.
  • Discover how to test a DSL implementation and how to customize runtime and IDE aspects of the DSL

Who This Book Is For

This book is targeted at programmers and developers who want to create a domain-specific language with Xtext. They should have a basic familiarity with Eclipse and its functionality. Previous experience with compiler implementation can be helpful but is not necessary since this book will explain all the development stages of a DSL.

What You Will Learn

  • Write Xtext grammar for a DSL;
  • Use Xtend as an alternative to Java to write cleaner, easier-to-read, and more maintainable code;
  • Build your Xtext DSLs easily with Maven/Tycho and Gradle;
  • Write a code generator and an interpreter for a DSL;
  • Explore the Xtext scoping mechanism for symbol resolution;
  • Test most aspects of the DSL implementation with JUnit;
  • Understand best practices in DSL implementations with Xtext and Xtend;
  • Develop your Xtext DSLs using Continuous Integration mechanisms;
  • Use an Xtext editor in a web application

In Detail

Xtext is an open source Eclipse framework for implementing domain-specific languages together with IDE functionalities. It lets you implement languages really quickly; most of all, it covers all aspects of a complete language infrastructure, including the parser, code generator, interpreter, and more.

This book will enable you to implement Domain Specific Languages (DSL) efficiently, together with their IDE tooling, with Xtext and Xtend. Opening with brief coverage of Xtext features involved in DSL implementation, including integration in an IDE, the book will then introduce you to Xtend as this language will be used in all the examples throughout the book. You will then explore the typical programming development workflow with Xtext when we modify the grammar of the DSL.

Further, the Xtend programming language (a fully-featured Java-like language tightly integrated with Java) will be introduced. We then explain the main concepts of Xtext, such as validation, code generation, and customizations of runtime and UI aspects. You will have learned how to test a DSL implemented in Xtext with JUnit and will progress to advanced concepts such as type checking and scoping. You will then integrate the typical Continuous Integration systems built in to Xtext DSLs and familiarize yourself with Xbase. By the end of the book, you will manually maintain the EMF model for an Xtext DSL and will see how an Xtext DSL can also be used in IntelliJ.

Style and approach

A step-by step-tutorial with illustrative examples that will let you master using Xtext and implementing DSLs with its custom language, Xtend.

โœฆ Subjects


Software Development;Software Design, Testing & Engineering;Programming;Computers & Technology;Internet & Social Media;Blogging & Blogs;eBay;E-Commerce;Hacking;Online Searching;Podcasts & Webcasts;Search Engine Optimization;Social Media;Social Media for Business;Web Browsers;Web Marketing;Computers & Technology


๐Ÿ“œ SIMILAR VOLUMES


Implementing domain-specific languages w
โœ Bettini L. ๐Ÿ“‚ Library ๐Ÿ“… 2013 ๐Ÿ› Packt ๐ŸŒ English

<p>Learn how to implement a DSL with Xtext and Xtend using easy-to-understand examples and best practices</p> <p><b>Overview</b></p> <ul> <li>Learn to quickly develop a domain-specific language with Xtext</li> <li>Implement any aspect of a DSL using Xtend, a fully featured Java-like programming lang

Variable Domain-specific Software Langua
โœ Stefan Sobernig ๐Ÿ“‚ Library ๐Ÿ“… 2020 ๐Ÿ› Springer International Publishing;Springer ๐ŸŒ English

<p><p>This book details the conceptual foundations, design and implementation of the domain-specific language (DSL) development system DjDSL. DjDSL facilitates design-decision-making on and implementation of reusable DSL and DSL-product lines, and represents the state-of-the-art in language-based an

Groovy for Domain-Specific Languages: Ex
โœ Fergal Dearle ๐Ÿ“‚ Library ๐Ÿ“… 2010 ๐Ÿ› Packt Publishing ๐ŸŒ English

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 t

DSL Engineering: Designing, Implementing
โœ Markus Voelter ๐Ÿ“‚ Library ๐Ÿ“… 2013 ๐Ÿ› dslbook.org ๐ŸŒ English

(with Sebastian Benz, Christian Dietrich, Birgit Engelmann Mats Helander, Lennart Kats, Eelco Visser, Guido Wachsmuth) [This book is donationware.] Domain-Specific Languages are programming languages that are tailored to a particular application domain. By incorporating knowledge about that do

Language Implementation Patterns: Create
โœ Terence Parr ๐Ÿ“‚ Library ๐Ÿ“… 2010 ๐Ÿ› Pragmatic Bookshelf ๐ŸŒ English

<p>Knowing how to create domain-specific languages (DSLs) can give you a huge productivity boost. Instead of writing code in a general-purpose programming language, you can first build a custom language tailored to make you efficient in a particular domain.<br/><br/> The key is understanding the com